/* LatiTech - style.css
   Minimal, Apple-inspired design. Works on desktop and mobile. */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --btn: #0071e3;
  --btn-hover: #0062c4;
  --il-surface: #ffffff;
  --il-stroke: #d2d2d7;
  --il-gray: #e8e8ed;
  --ok: #1d8a3d;
  --err: #d70015;
  --header-bg: rgba(251, 251, 253, .78);
  --radius: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #161618;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --line: #38383a;
    --blue: #2997ff;
    --il-surface: #2c2c2e;
    --il-stroke: #48484a;
    --il-gray: #3a3a3c;
    --ok: #30d158;
    --err: #ff6961;
    --header-bg: rgba(0, 0, 0, .72);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.bar {
  width: min(1120px, 100% - 48px);
  height: 64px;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.3rem; letter-spacing: -.03em; flex: none; }
/* Logo image: <picture> swaps the light/dark artwork; compact lockup (no "BUSINESS" line) stays readable when small */
.brand-logo { display: block; height: 58px; width: auto; }
@media (min-width: 761px) { html { scroll-padding-top: 72px; } .bar { height: 72px; } }
@media (max-width: 760px) { .brand-logo { height: 40px; } }
@media (max-width: 480px) { .lang { padding: 6px 10px; } }   /* keeps logo + language + menu on one line */
@media (max-width: 350px) { .brand-logo { height: 32px; } }
.mark { width: 32px; height: 32px; flex: none; }
.w-light { font-weight: 300; }
.w-bold { font-weight: 700; }

nav ul { list-style: none; display: flex; gap: 36px; padding: 0; }
nav a { text-decoration: none; font-size: .92rem; color: var(--ink-2); transition: color .2s; }
nav a:hover, nav a[aria-current="true"] { color: var(--ink); }

.tools { display: flex; align-items: center; gap: 8px; }

.lang {
  font: inherit; font-size: .85rem; color: var(--ink);
  padding: 6px 14px; border-radius: 980px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background .2s, transform .15s ease;
}
.lang:hover { background: var(--bg-alt); transform: translateY(-1px); }
.lang:active { transform: translateY(0) scale(.96); }

.menu-btn {
  display: none;
  width: 40px; height: 40px; padding: 0;
  place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .25s;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 620px;
  min-height: min(86svh, 800px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.hero-inner {
  width: min(880px, 100% - 48px);
  margin-block: auto;
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}

/* The carousel lives in its own band BELOW the text and buttons,
   so it can never overlap them, whatever the screen size. */
.hero-carousel {
  position: relative; flex: none;
  width: min(1120px, 100% - 48px); margin: 28px auto 0;   /* same width as .bar / .wrap */
}
.hc-track {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: clamp(220px, 34vw, 420px);
}

.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1);
}
.hc-slide.is-active { opacity: 1; visibility: visible; }
@media (min-width: 761px) { .hc-track { aspect-ratio: 5 / 2; max-height: none; } }
@media (prefers-reduced-motion: reduce) { .hc-slide { transition: none; } }
.hc-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 40px 28px 22px;
  font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 55%, rgba(0,0,0,0) 100%);
}

.hc-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, scale .15s ease;
}
.hc-btn:hover { background: var(--bg-alt); scale: 1.08; }
.hc-btn:active { scale: .94; }
.hc-btn svg { width: 18px; height: 18px; }
.hc-prev { left: 16px; }
.hc-next { right: 16px; }
@media (max-width: 640px) {
  .hc-btn { width: 32px; height: 32px; }
  .hc-btn svg { width: 15px; height: 15px; }
  .hc-prev { left: 8px; }
  .hc-next { right: 8px; }
}

.hc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.hc-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 0; background: var(--line); cursor: pointer;
  transition: background .2s, transform .2s;
}
.hc-dot:hover { transform: scale(1.35); }
.hc-dot.active { background: var(--blue); transform: scale(1.25); }

h1 {
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -.04em;
  text-wrap: balance;
}
.lead {
  margin: 24px auto 0; max-width: 34em;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4;
  letter-spacing: -.01em; color: var(--ink-2);
  text-wrap: balance;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 1.0625rem; text-decoration: none;
  padding: 12px 26px; border-radius: 980px; border: 0; cursor: pointer;
  transition: background .2s, opacity .2s, transform .15s ease;
}
.btn.primary { background: var(--btn); color: #fff; }
.btn.primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0) scale(.97); }
.btn.primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn.text { color: var(--blue); padding-inline: 0; }
.btn.text:hover { text-decoration: underline; text-underline-offset: 4px; transform: translateX(2px); }

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -.035em;
  text-wrap: balance;
}

/* ---------- Services ---------- */
.services { padding: 120px 0; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; font-size: 1.3125rem; line-height: 1.4; color: var(--ink-2); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 36px 36px 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.625rem; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.card .txt p { margin-top: 10px; color: var(--ink-2); max-width: 30em; }

.specs {
  list-style: none; margin-top: 18px; padding: 0;
  display: grid; gap: 8px; max-width: 32em;
}
.specs li {
  position: relative; padding-left: 22px;
  font-size: .92rem; line-height: 1.4; color: var(--ink-2);
}
.specs li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.tags {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px;
}
.tags span {
  font-size: .78rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 980px; padding: 4px 12px;
}

.card-link { display: contents; cursor: pointer; }
.card { transition: box-shadow .2s, transform .2s; }
.card:has(.card-link):hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.more-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 5px;
  font-size: .88rem; font-weight: 500; color: var(--blue);
}
.more-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.card:has(.card-link):hover .more-link svg { transform: translateX(4px); }

.art { margin-top: auto; padding: 32px 0 28px; overflow: hidden; }
.art.bleed { padding-bottom: 0; }

.il { width: 100%; height: auto; max-width: 520px; margin-inline: auto; transition: scale .3s ease; }
.card:has(.card-link):hover .il { scale: 1.035; }
.il .s { fill: var(--il-surface); stroke: var(--il-stroke); stroke-width: 1.5; }
.il .g { fill: var(--il-gray); }
.il .k { fill: var(--ink); }
.il .b { fill: var(--blue); }
.il .ln { fill: none; stroke: var(--il-stroke); stroke-width: 1.5; }
.il .ln2 { fill: none; stroke: var(--il-stroke); stroke-width: 2; stroke-linecap: round; }
.il .bl { fill: none; stroke: var(--blue); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.il .wh { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.c-web { grid-column: span 7; }
.c-mobile { grid-column: span 5; }
.c-net, .c-sec, .c-cons { grid-column: span 4; }
.c-app {
  grid-column: span 12;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px; align-items: center; padding: 36px 36px 36px;
}
.c-app .art { padding: 0; }

/* ---------- Stats (dashboard-style panel) ---------- */
.stats { padding: 56px 0 100px; }

.dash-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dash-title { margin-left: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

.dash-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
}
.dash-widget {
  background: var(--bg-alt); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: default;
}

.dash-donut { width: 92px; height: 92px; }
.dash-track { fill: none; stroke: var(--line); stroke-width: 10; }
.dash-fill {
  fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50px 50px;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1);
}
.dash-pct { font-size: 20px; font-weight: 700; fill: var(--ink); font-family: var(--font); }

.dash-widget .stat-label { margin-top: 10px; font-size: .82rem; line-height: 1.3; color: var(--ink-2); max-width: 15em; }

@media (max-width: 900px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .stats { padding: 40px 0 72px; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { .dash-fill { transition: none; } }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); padding: 120px 0; }

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px); align-items: start;
}

.person { display: grid; gap: 28px; }

.portrait {
  position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 360px;
  overflow: hidden; border-radius: var(--radius); background: var(--il-gray);
  border: 1px solid var(--line);
}
.portrait .ph { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--il-stroke); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.person-copy { display: grid; gap: 14px; }
.person-copy p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; max-width: 32em; }
.person-copy .who { display: grid; gap: 2px; font-size: 1rem; }
.person-copy .who strong { color: var(--ink); font-size: 1.625rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.email-link { font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; color: var(--blue); text-decoration: none; word-break: break-word; }
.email-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.muted { font-size: .95rem; }

#contactForm { display: grid; gap: 20px; }
#contactForm label { display: grid; gap: 8px; font-size: .92rem; font-weight: 500; }
.opt { color: var(--ink-2); font-weight: 400; }
.lang-note { font-style: italic; margin-top: -4px; }

input, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { font-size: .95rem; min-height: 1.5em; flex: 1 1 220px; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--err); }

.map-block { margin-top: 64px; text-align: center; }
.map-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 6; max-height: 340px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--il-gray);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.05); }
.map-caption { margin-top: 16px; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 620px) { .map-frame { aspect-ratio: 4 / 3; } }


/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .c-web, .c-mobile, .c-net, .c-sec { grid-column: span 6; }
  .c-cons { grid-column: span 12; }
  .c-app { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid form { order: -1; }
  .portrait { max-width: 320px; }
}

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  nav {
    position: absolute; left: 0; right: 0; top: 64px;
    display: none;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px 24px 16px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav li + li { border-top: 1px solid var(--line); }
  nav a { display: block; padding: 16px 0; font-size: 1.25rem; color: var(--ink); }
  .services, .contact { padding: 84px 0; }
}

@media (max-width: 620px) {
  .c-web, .c-mobile, .c-net, .c-sec, .c-cons { grid-column: span 12; }
  .card { padding: 28px 24px 0; }
  .c-app { padding: 28px 24px; }
  .bar, .wrap, .hero-inner, .hero-carousel { width: min(1120px, 100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Service detail pages ---------- */
.detail-topbar { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-topbar .bar { justify-content: space-between; height: auto; }
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.detail-back:hover { color: var(--ink); }
.detail-back svg { width: 15px; height: 15px; }

.detail-hero { width: 100%; aspect-ratio: 16 / 9; max-height: 420px; object-fit: cover; display: block; }

.detail-main { padding: 48px 0 100px; }
.detail-wrap { width: min(760px, 100% - 48px); margin-inline: auto; }
.detail-wrap h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.detail-lead { margin-top: 18px; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 38em; }

.detail-wrap h2 {
  margin-top: 44px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em;
}
.detail-wrap .specs { margin-top: 18px; }
.detail-wrap .specs li { font-size: 1rem; }
.detail-wrap .tags { margin-top: 20px; }

.detail-cta {
  margin-top: 56px; padding: 32px; background: var(--bg-alt); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.detail-cta p { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; }

@media (max-width: 620px) {
  .detail-hero { aspect-ratio: 4 / 3; }
  .detail-main { padding: 36px 0 72px; }
}

/* ---------- Demos section (home page) ---------- */
.demos { padding: 0 0 120px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-card .il { max-width: 300px; }
.demo-badge {
  display: inline-block; margin-bottom: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 4px 10px; border-radius: 980px;
}
.demo-group + .demo-group { margin-top: 88px; }
.group-head { max-width: 680px; margin-bottom: 28px; }
.group-head h3 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.group-head p { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }
.demos-note { margin-top: 28px; color: var(--ink-2); font-size: .98rem; max-width: 40em; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-grid > :last-child { grid-column: span 2; } }
@media (max-width: 760px) { .demos { padding: 0 0 84px; } .demo-group + .demo-group { margin-top: 64px; } .group-head h3 { font-size: 1.5rem; } }
@media (max-width: 620px) { .demo-grid { grid-template-columns: 1fr; } .demo-grid > :last-child { grid-column: auto; } }

/* ---------- Demos > enterprise group (home page): 4 showcase mini-sites ---------- */
.section-head .sc-eyebrow { margin-top: 0; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.sc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sc-card { background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.sc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.sc-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.sc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--sc); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.sc-card:hover .sc-media img { transform: scale(1.04); }
.sc-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sc-cat { font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sc); }
.sc-body h3 { font-size: 1.625rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.sc-body p { color: var(--ink-2); }
.sc-body .sc-feat { font-size: .88rem; }
.sc-links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.sc-btn { background: var(--sc) !important; padding: 10px 22px; font-size: .98rem; }
@media (prefers-color-scheme: dark) { .sc-cat { filter: brightness(1.35); } }
@media (max-width: 760px) { .sc-grid { grid-template-columns: 1fr; } .sc-body { padding: 22px 22px 26px; } }

/* ---------------- Floating WhatsApp button ---------------- */
.wa-float {
  --wa: #25d366; --wa-ink: #fff;
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.wa-float > * { pointer-events: auto; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 0; height: 60px; min-width: 60px; padding: 0 16px;
  border-radius: 980px; color: var(--wa-ink); background: var(--wa); text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 140, 126, .35), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .25s ease, box-shadow .25s ease, gap .3s ease, padding .3s ease;
}
.wa-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18, 140, 126, .42), 0 3px 8px rgba(0, 0, 0, .14); }
.wa-btn:active { transform: translateY(0) scale(.97); }
.wa-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wa-ico { width: 28px; height: 28px; flex: none; }
.wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: .98rem; font-weight: 600; letter-spacing: -.01em;
  transition: max-width .35s ease, opacity .25s ease;
}
@media (hover: hover) and (min-width: 761px) {
  .wa-btn:hover, .wa-btn:focus-visible { gap: 10px; padding: 0 22px 0 16px; }
  .wa-btn:hover .wa-label, .wa-btn:focus-visible .wa-label { max-width: 180px; opacity: 1; }
}
.wa-hint {
  position: relative; max-width: 270px; padding: 14px 40px 14px 16px;
  font-size: .9rem; line-height: 1.45; color: var(--ink);
  background: var(--il-surface); border: 1px solid var(--line); border-radius: 18px 18px 6px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-hint.is-in { opacity: 1; transform: none; }
.wa-hint[hidden] { display: none; }
.wa-hint p { margin: 0; }
.wa-hint-x {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
}
.wa-hint-x:hover { background: var(--bg-alt); color: var(--ink); }
.wa-hint-x svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .wa-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-btn { height: 56px; min-width: 56px; padding: 0 14px; }
  .wa-hint { max-width: min(270px, calc(100vw - 32px)); }
}
/* Ordering demo: sit above the full-width "View cart" bar on tablets and phones. */
@media (max-width: 900px) { body:has(.cart-fab) .wa-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px); } }
@media (prefers-reduced-motion: reduce) { .wa-btn, .wa-label, .wa-hint { transition: none; } .wa-btn:hover { transform: none; } }
@media print { .wa-float { display: none; } }
