/* EUCELL page CSS: brand tokens, the logo, the drawn pieces inside visuals, motion tuned by emil-design-eng.
   The kit (system.css, layout.css, motion.css) stays untouched; this file only adds what it lacks. */
:root {
  --p-bg: #f2f5f9; --p-surface: #e4ebf3; --p-ink: #0b1220; --p-muted: #5b6576;
  --p-accent: #1d5fc4; --p-accent-ink: #ffffff; --p-action: #1d5fc4; --p-action-ink: #ffffff;
  --p-inv-bg: #0b1220; --p-inv-surface: #141d2e; --p-inv-ink: #eef2f7; --p-inv-muted: #9aa6b8;
  --p-inv-accent: #7cc0f0; --p-inv-accent-ink: #0b1220; --p-inv-action: #eef2f7; --p-inv-action-ink: #0b1220;
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400; --display-tracking: -0.035em; --display-tracking-xl: -0.042em; --ly-scale: 0.98;
  --brand-1: #5db2e6; --brand-2: #3f78d0;
  /* motion (emil-design-eng): one strong ease-out for everything that answers the user, a strong ease-in-out
     for things that move on screen, press feedback at 0.97, exits faster than entrances */
  --ease: cubic-bezier(0.23, 1, 0.32, 1); --m-ease: var(--ease); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --m-press: 120ms;
}
::selection { background: color-mix(in oklab, var(--brand-1) 35%, transparent); }

/* the logo: the Ucell hexagon and the name */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 "Nunito", var(--font-text); letter-spacing: -0.01em; color: var(--ink); }
.logo svg { width: 26px; height: 28px; flex: none; }
.logo b { font-weight: 800; background: linear-gradient(90deg, var(--brand-2), var(--brand-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the language switch: three short links, the current one marked */
.lang { display: inline-flex; gap: 2px; align-items: center; }
.lang a { display: inline-grid; place-items: center; min-width: 36px; height: 32px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.lang a[aria-current="true"] { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
@media (hover: hover) and (pointer: fine) { .lang a:hover { color: var(--ink); } }
.footer .lang a { min-height: 44px; }

/* the hero media: the product on its ground */
.hero__media.media--dark { background: radial-gradient(120% 90% at 70% 20%, #1c3a66 0%, #0b1220 62%); }
.hero__media.media--soft { background: linear-gradient(160deg, #dbe8f6, #c6d7ec); }
.hero__media.media--contain > img { object-fit: contain; padding: 48px; }
.trio { position: absolute; inset: 0; display: grid; place-items: center; }
.trio img { position: absolute; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.trio .t1 { width: 54%; left: 2%; top: 14%; }
.trio .t2 { width: 30%; right: 8%; top: 8%; border-radius: 22px; }
.trio .t3 { width: 30%; right: 18%; bottom: 6%; border-radius: 22px; }
@media (max-width: 639px) { .trio .t1 { width: 62%; left: 0; top: 6%; } .trio .t2 { width: 34%; right: 4%; } .trio .t3 { display: none; } }

/* product cards on the home page: linked open cards, picture panel under the words */
.panel { position: relative; height: var(--p-h, 300px); overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.panel.panel--contain > img { object-fit: contain; padding: 24px; }
.panel.panel--dark { background: radial-gradient(120% 100% at 70% 10%, #1c3a66, #0b1220 65%); }
.panel.panel--soft { background: linear-gradient(160deg, #dbe8f6, #c6d7ec); }
#products .row-a .panel { --p-h: 360px; }
#products .row-b .card > .panel { --p-h: 340px; height: 340px; }
a.card { color: inherit; text-decoration: none; }
a.card h3 { display: flex; align-items: baseline; gap: 10px; }
a.card h3 .go { font-size: 16px; color: var(--action); transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover .panel > img { transform: scale(1.03); }
  a.card:hover h3 .go { transform: translateX(3px); }
}
@media (max-width: 1023px) { #products .row-a .panel, #products .row-b .panel { --p-h: 260px; } }
@media (max-width: 639px) { #products .row-a .panel, #products .row-b .panel { --p-h: 190px; } }

/* markets: the countries set large on the dark band, grouped by region */
.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-7); }
.markets h3 { font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); margin: 0 0 var(--s-4); }
.markets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.markets li { font: var(--display-weight) clamp(28px, 2.4vw + 6px, 44px)/1.1 var(--font-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 12px; }
.markets li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--brand-1); transform: rotate(45deg) scale(.8); }
.logos { margin-top: var(--s-8); display: flex; justify-content: flex-start; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.logos > span { font-size: var(--t-small); color: var(--muted); margin-right: var(--s-3); }
.logos i { display: grid; place-items: center; width: 132px; height: 64px; border-radius: 12px; background: #fff; }
.logos img { max-width: 100px; max-height: 36px; object-fit: contain; }
@media (max-width: 1023px) { .markets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .markets { grid-template-columns: 1fr; gap: var(--s-5); } .logos { margin-top: var(--s-6); gap: var(--s-3); } .logos i { width: 104px; height: 52px; } }

/* lists beside a picture */
.op-list { list-style: none; margin: 0; padding: 0; display: grid; }
.op-list li { display: grid; gap: 4px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.op-list li:first-child { padding-top: 0; }
.op-list b { font-weight: 500; font-size: var(--t-lead); }
.split-pic { margin-top: var(--s-7); }
.split-pic .panel { --p-h: 100%; height: 100%; min-height: 440px; }
@media (min-width: 1024px) { .split-pic { flex: 1 1 0; min-height: 0; } .split-pic > * { min-height: 0; } }
@media (max-width: 1023px) { .split-pic .panel { min-height: 0; height: 360px; } }
@media (max-width: 639px) { .split-pic .panel { height: 240px; } .op-list li { padding: var(--s-4) 0; } }

/* facts: figures from the client's files, set large */
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 6px; align-content: start; }
.facts b { font: var(--display-weight) var(--t-stat)/1.05 var(--font-display); letter-spacing: -0.03em; }
.facts span { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 639px) { .facts { grid-template-columns: 1fr 1fr; margin-top: var(--s-6); } }

/* the wide showcase picture */
.show-pic { margin-top: var(--s-7); }
.show-pic .panel { --p-h: 100%; height: 100%; min-height: 380px; }
@media (min-width: 1024px) { .show-pic { flex: 1 1 0; min-height: 0; } }
@media (max-width: 1023px) { .show-pic .panel { height: 380px; min-height: 0; } }
@media (max-width: 639px) { .show-pic .panel { height: 240px; } }

/* Renew: the before and after slider. The after photo is clipped from the left by the handle's position;
   a native range input drives it, so the keyboard and screen readers work; the handle eases to a click,
   follows a drag at once (emil-design-eng: clip-path for comparison, transitions only when not dragging) */
.compare { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #111; aspect-ratio: 2 / 3; height: 100%; max-height: 620px; margin-inline: auto; --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare.is-easing .after, .compare.is-easing .compare__handle { transition: clip-path 320ms var(--ease), left 320ms var(--ease); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1220' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform 160ms var(--ease); }
.compare:active .compare__handle::after { transform: scale(0.94); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible ~ .compare__handle::after { outline: 2px solid var(--action); outline-offset: 3px; }
.compare__tag { position: absolute; bottom: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(11,18,32,.72); color: #fff; font-size: 13px; font-weight: 500; pointer-events: none; }
.compare__tag--b { left: 16px; } .compare__tag--a { right: 16px; }
.cmp-grid { margin-top: var(--s-7); }
@media (min-width: 1024px) { .cmp-grid { flex: 1 1 0; min-height: 0; } .cmp-grid > * { min-height: 0; } }
@media (max-width: 1023px) { .compare { height: 520px; } }
@media (max-width: 639px) { .compare { height: 420px; } }

/* six tool rows in two columns */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); margin-top: var(--s-7); }
@media (max-width: 639px) { .tools { grid-template-columns: 1fr; } }

/* the drawn mock of the request steps beside the form */
.ui-card { background: #fff; border: 1px solid rgba(11,18,32,.12); border-radius: 16px; box-shadow: 0 1px 2px rgba(11,18,32,.06), 0 12px 32px -12px rgba(11,18,32,.18); font-size: 14px; color: #0b1220; }
.panel .sv { position: absolute; left: 50%; top: 32px; translate: -50% 0; width: min(420px, calc(100% - 48px)); }
.vh { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(11,18,32,.09); font-weight: 500; }
.row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid rgba(11,18,32,.09); }
.row:last-child { border-bottom: 0; }
.key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #eef2f7; font: 500 13px/1 var(--font-mono); }
.row.is-on .key { background: var(--action); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: #eef2f7; color: #5b6576; }
.chip--ok { background: #e4f4ec; color: #0f7b4a; } .chip--ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--blue { background: #e3edfb; color: var(--action); }
.panel--req { --p-h: 260px; background: linear-gradient(160deg, #dbe8f6, #c6d7ec); }
.mail-row { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.field :is(input, select, textarea) { background: #fff; transition: border-color 150ms ease, box-shadow 200ms var(--ease); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%230b1220' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
@media (max-width: 639px) { .panel--req, .mail-row p { display: none; } .mail-row .btn { width: 100%; } .field textarea { min-height: 88px; } }
.panel .dg { position: absolute; inset: 0; }
.panel--dg { --p-h: 100%; height: 100%; min-height: 360px; background: #fff; border: 1px solid rgba(11,18,32,.12); }
@media (max-width: 1023px) { .panel--dg { height: 420px; } }

/* ---------------------------------------------------------------- motion, tuned by emil-design-eng */
html:not([data-motion="off"]) .btn { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease); }
html:not([data-motion="off"]) .btn:active { transform: scale(0.97); transition-duration: 150ms, 150ms, 150ms, 150ms, 100ms; }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .btn:active { transform: scale(0.97); }
  html:not([data-motion="off"]) .btn--xl:active { transform: scale(0.99); }
}
.nav__link .chev { transition: transform 200ms var(--ease); }
@media (min-width: 1024px) {
  /* the mega panel: the surface fades in after a 150ms intent delay; its columns follow 40-50ms apart and settle 4px;
     closing is one 120ms fade, no stagger; a second word swaps the panel at once */
  html:not([data-motion="off"]) .nav__menu .grid > * { opacity: 0; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms var(--ease); }
  html:not([data-motion="off"]) .nav__item:is(:hover, :focus-within) > .nav__menu .grid > * { opacity: 1; transform: none; transition-duration: 220ms, 260ms; }
  html:not([data-motion="off"]) .nav__item:is(:hover, :focus-within) > .nav__menu .grid > :nth-child(1) { transition-delay: 170ms; }
  html:not([data-motion="off"]) .nav__item:is(:hover, :focus-within) > .nav__menu .grid > :nth-child(2) { transition-delay: 210ms; }
  html:not([data-motion="off"]) .nav__item:is(:hover, :focus-within) > .nav__menu .grid > :nth-child(3) { transition-delay: 250ms; }
  html:not([data-motion="off"]) .nav__item:is(:hover, :focus-within) > .nav__menu .grid > :nth-child(4) { transition-delay: 290ms; }
  html:not([data-motion="off"]) .nav.m-menu-open .nav__menu .grid > * { transition-delay: 0s !important; }
  .menu-col a { transition: color 150ms ease, transform 200ms var(--ease); }
  .menu-card .panel > img { transition: transform 400ms var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
  .menu-col a:hover { transform: translateX(2px); }
  .menu-card:hover .panel > img { transform: scale(1.03); }
}
/* the menu button: two bars turn into a cross (on-screen movement: ease-in-out, 220ms both ways) */
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 220ms var(--ease-in-out); }
.burger i:first-child { top: 0; } .burger i:last-child { bottom: 0; }
.nav__toggle[aria-expanded="true"] .burger i:first-child { transform: translateY(5.2px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .burger i:last-child { transform: translateY(-5.2px) rotate(-45deg); }
.nav__toggle { transition: transform 160ms var(--ease), background-color 150ms ease; }
.nav__toggle:active { transform: scale(0.95); }
/* the phone sheet: rows rise 8px, 35ms apart; closing is instant */
@media (max-width: 1023px) {
  html:not([data-motion="off"]) .nav.is-open .nav__links > .nav__item { transition: opacity 240ms ease, transform 320ms var(--ease); }
  @starting-style { html:not([data-motion="off"]) .nav.is-open .nav__links > .nav__item { opacity: 0; transform: translateY(8px); } }
  .nav.is-open .nav__links > .nav__item:nth-child(2) { transition-delay: 35ms; }
  .nav.is-open .nav__links > .nav__item:nth-child(3) { transition-delay: 70ms; }
  .nav.is-open .nav__links > .nav__item:nth-child(4) { transition-delay: 100ms; }
  .nav.is-open .nav__links > .nav__item:nth-child(n+5) { transition-delay: 130ms; }
}
@media (hover: hover) and (pointer: fine) { .row { transition: background-color 150ms ease; } .row:hover { background: #f4f6fa; } }
.ly-live::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="off"]) .btn:active, .nav__toggle:active { transform: none; }
  .nav__menu .grid > *, .nav.is-open .nav__links > .nav__item { transform: none !important; transition-delay: 0s !important; }
  .burger i, .compare .after, .compare__handle { transition: none !important; }
  .menu-col a:hover, .menu-card:hover .panel > img, a.card:hover .panel > img, a.card:hover h3 .go { transform: none; }
}

.hero h1, h2 { hyphens: manual; }
.tools > li:nth-child(2) { padding-top: 0; }
@media (max-width: 639px) { .tools > li:nth-child(2) { padding-top: var(--s-4); } }
#launch .show-pic .panel--dg { min-height: 300px; }
#launch .facts { --n: 3; }
/* a showcase followed by facts keeps a fixed height so the figures sit under it */
@media (min-width: 1024px) { .show-pic:has(+ .facts) { flex: none; } .show-pic:has(+ .facts) .panel { height: 400px; min-height: 0; } #launch .show-pic:has(+ .facts) .panel { height: 340px; } }
.show-pic + .facts { margin-top: var(--s-7); }
@media (min-width: 1024px) { #audience .show-pic:has(+ .facts) .panel { height: 320px; } }

/* markets coming next: the same list, quieter */
.markets__next li { color: var(--muted); }
.markets__next li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.markets li { font-size: clamp(26px, 1.9vw + 6px, 38px); }
