/* Adey Technologies public site. Mobile-first; breakpoints 768 / 1024 / 1440. Tokens live in tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--space-2); line-height: var(--leading-tight); font-weight: var(--weight-bold); color: var(--color-heading); letter-spacing: -0.01em; }
h1 { font-size: var(--text-5xl); font-weight: var(--weight-extrabold); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); font-weight: var(--weight-extrabold); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--color-accent-100); color: var(--color-navy-900); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-2); top: -100px; z-index: 1000;
  padding: var(--space-1) var(--space-2); background: var(--color-navy-900); color: var(--color-white);
  border-radius: var(--radius-sm); font-weight: var(--weight-semibold);
}
.skip-link:focus { top: var(--space-1); color: var(--color-white); }

.site-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.site-container--narrow { max-width: 820px; }
.section { padding-block: var(--space-8); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-dark-section); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--tight { padding-block: var(--space-5); }
@media (min-width: 1024px) { .section { padding-block: var(--space-12); } }

.text-muted { color: var(--color-text-muted); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 65ch; }
.center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.todo { outline: 2px dashed var(--color-accent-600); outline-offset: 2px; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } .split--wide-left { grid-template-columns: 3fr 2fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 48px; padding: 12px var(--space-3);
  font: inherit; font-weight: var(--weight-bold); font-size: var(--text-base); line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--color-accent-500); color: var(--color-navy-900); }
.btn--primary:hover { background: var(--color-accent-600); color: var(--color-navy-900); }
.btn--secondary { background: transparent; color: var(--color-heading); border-color: var(--color-heading); }
.btn--secondary:hover { background: var(--color-inverse-bg); color: var(--color-inverse-text); }
.btn--on-dark { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.6); }
.btn--on-dark:hover { background: var(--color-white); color: var(--color-navy-900); border-color: var(--color-white); }
.btn--dark { background: var(--color-inverse-bg); color: var(--color-inverse-text); }
.btn--dark:hover { opacity: 0.88; }
.btn--sm { min-height: 40px; padding: 8px var(--space-2); font-size: var(--text-sm); }
.btn--lg { min-height: 56px; padding: 14px var(--space-4); font-size: var(--text-lg); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--weight-bold); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--duration-fast); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-header-bg); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-heading); font-weight: var(--weight-extrabold); font-size: var(--text-lg); }
.brand img { width: 44px; height: auto; }
.brand:hover { color: var(--color-heading); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-heading); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
  padding: var(--space-2) var(--container-pad) var(--space-3);
}
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-link, .nav-dropdown__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
  padding: 12px var(--space-1); min-height: 48px;
  font: inherit; font-weight: var(--weight-semibold); color: var(--color-heading);
  text-decoration: none; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; text-align: left;
}
.nav-link:hover, .nav-dropdown__toggle:hover { color: var(--color-link); background: var(--color-tint); }
.nav-link[aria-current="page"], .nav-dropdown__toggle.is-current { color: var(--color-link); }
.nav-dropdown__toggle .icon { width: 18px; height: 18px; transition: transform var(--duration-fast); }
.nav-dropdown__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-dropdown__menu { list-style: none; display: none; padding: 0 0 var(--space-1) var(--space-2); }
.nav-dropdown__menu.is-open { display: block; }
.nav-dropdown__menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px var(--space-1); border-radius: var(--radius-sm);
  color: var(--color-body-strong); text-decoration: none; font-weight: var(--weight-semibold);
}
.nav-dropdown__menu a:hover, .nav-dropdown__menu a:focus-visible { background: var(--color-tint); color: var(--color-link); }
.nav-dropdown__menu .icon { width: 20px; height: 20px; color: var(--color-link); flex-shrink: 0; }
.nav-dropdown__all { border-top: 1px solid var(--color-border); margin-top: 4px; padding-top: 4px; }
.nav-cta { margin-top: var(--space-2); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; box-shadow: none; border: 0; overflow: visible; max-height: none; background: none; }
  .nav-list { flex-direction: row; align-items: center; gap: 4px; }
  .nav-link, .nav-dropdown__toggle { width: auto; padding: 8px 12px; min-height: 44px; }
  .nav-dropdown { position: relative; }
  .nav-dropdown__menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 280px; padding: var(--space-1); background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  }
  .nav-cta { margin: 0 0 0 var(--space-1); }
}

/* ---------- Hero (home) ----------
   The copy (eyebrow → assurances) always fits the first screen: the hero is one viewport tall
   (minus header, and minus the sticky action bar on phones) and type scales with viewport height.
   Phones get shorter copy (.hero-short); tablets/desktops get the full copy (.hero-long). */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(165deg, var(--color-navy-900) 0%, var(--color-navy-950) 100%);
  color: rgba(255, 255, 255, 0.84);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.hero__glow--gold { width: 420px; height: 420px; top: -160px; right: -120px; background: rgba(249, 178, 51, 0.45); }
.hero__glow--blue { width: 520px; height: 520px; bottom: -260px; left: -200px; background: rgba(47, 125, 225, 0.45); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}

.hero-long { display: none; }
.hero-short { display: inline; }

.hero__layout { display: grid; gap: var(--space-4); }
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100svh - var(--header-h) - var(--mobile-bar-h) - env(safe-area-inset-bottom));
  padding-block: var(--space-3);
}
.hero__eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin-bottom: var(--space-2);
  padding: 5px 12px 5px 10px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: rgba(255, 255, 255, 0.9);
}
.hero__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.hero__pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(74, 222, 128, 0.5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero h1 {
  color: var(--color-white); margin-bottom: var(--space-2);
  font-size: clamp(1.6rem, min(8.4vw, 5.6vh), 2.6rem); line-height: 1.1; letter-spacing: -0.025em;
}
/* The rotating word sits next to "We build". Invisible copies of every word (.hero__ghost) share one grid
   cell, so the slot is always as wide as the longest word and the headline never reflows. */
.hero__rotator { display: inline-grid; justify-items: start; vertical-align: top; white-space: nowrap; }
.hero__rotator > * { grid-area: 1 / 1; }
.hero__ghost { visibility: hidden; }
.hero__word {
  white-space: nowrap; font-size: 1em;
  background: linear-gradient(90deg, var(--color-accent-500), #ffd98a 45%, #8cc4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__word.is-leaving { animation: word-out 0.35s var(--ease-out) forwards; }
.hero__word.is-entering { animation: word-in 0.45s var(--ease-out) both; }
@keyframes word-out { to { opacity: 0; transform: translateY(-0.4em); } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }

.hero__lead { font-size: var(--text-base); line-height: 1.55; max-width: 56ch; margin-bottom: var(--space-3); color: rgba(255, 255, 255, 0.8); }
.hero__ctas { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-1); }
.hero__ctas .btn { min-height: 50px; padding-inline: 12px; white-space: nowrap; font-size: 0.95rem; }
.hero__ctas .btn .icon { display: none; }
.hero__assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 6px var(--space-2); margin-top: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: rgba(255, 255, 255, 0.82); }
.hero__assurances li { display: inline-flex; align-items: center; gap: 6px; }
.hero__assurances .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: rgba(74, 222, 128, 0.15); color: #4ade80; }

@media (min-width: 768px) {
  .hero-long { display: inline; }
  .hero-short { display: none; }
  .hero__layout { min-height: calc(100svh - var(--header-h)); align-items: center; padding-block: var(--space-4); }
  .hero__copy { min-height: 0; padding-block: 0; }
  .hero__eyebrow { font-size: var(--text-sm); margin-bottom: var(--space-3); }
  .hero h1 { font-size: clamp(2.2rem, min(5.2vw, 7vh), 3.3rem); margin-bottom: var(--space-3); }
  .hero__lead { font-size: clamp(1rem, 0.6rem + 1.1vh, 1.2rem); margin-bottom: var(--space-4); }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .hero__ctas .btn { min-height: 56px; padding-inline: var(--space-4); font-size: var(--text-lg); }
  .hero__ctas .btn .icon { display: inline-block; }
  .hero__assurances { font-size: var(--text-sm); gap: var(--space-1) var(--space-3); margin-top: var(--space-3); }
  .hero__assurances .icon { width: 18px; height: 18px; }
}
@media (min-width: 1024px) {
  .hero__layout { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-5); }
}
/* Short laptop screens: tighten vertical rhythm so the assurances stay above the fold. */
@media (min-width: 768px) and (max-height: 760px) {
  .hero__layout { padding-block: var(--space-3); }
  .hero__eyebrow { margin-bottom: var(--space-2); }
  .hero h1, .hero__lead { margin-bottom: var(--space-2); }
  .hero h1 { font-size: clamp(2.1rem, min(4.4vw, 6.3vh), 3.4rem); }
  .hero__lead { font-size: 1rem; }
  .hero__ctas .btn { min-height: 50px; font-size: var(--text-base); }
  .hero__assurances { margin-top: var(--space-2); }
}

/* ---------- Hero stage: four illustrated, animated product cards ----------
   Pure HTML/CSS (no images). Sizes use container query units so the whole scene scales as one. */
.hero__visual { position: relative; container-type: inline-size; width: 100%; max-width: 560px; margin: 0 auto var(--space-6); }
@media (min-width: 1024px) { .hero__visual { margin: 0; max-width: none; max-height: calc(100svh - var(--header-h) - var(--space-8)); aspect-ratio: 1.08; justify-self: center; width: min(100%, calc((100svh - var(--header-h) - var(--space-8)) * 1.08)); } }
.stage { position: relative; width: 100%; aspect-ratio: 1.08; font-size: 2.6cqw; color: var(--color-navy-900); } /* cqw = % of .hero__visual width */

.ui { position: absolute; border-radius: 1.1em; box-shadow: 0 1.6em 3.4em rgba(0, 0, 0, 0.45); }
.ui__tag {
  position: absolute; top: -1.1em; left: 1em; z-index: 2; display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.35em 0.8em; border-radius: 999px; background: var(--color-accent-500); color: var(--color-navy-900);
  font-size: 0.8em; font-weight: var(--weight-extrabold); white-space: nowrap; box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.3);
}
.ui__tag .icon { width: 1.2em; height: 1.2em; }

/* 1. Web platform: dashboard */
.ui--dash { left: 12%; top: 13%; width: 72%; background: #fff; overflow: visible; }
.ui--dash .ui__tag { background: #8cc4ff; }
.win-bar { display: flex; align-items: center; gap: 0.35em; height: 2.1em; padding: 0 0.9em; border-bottom: 1px solid #eef2f7; }
.win-bar i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #ff6b6b; }
.win-bar i:nth-child(2) { background: #f9b233; }
.win-bar i:nth-child(3) { background: #4ade80; }
.win-bar b { margin-left: auto; font-size: 0.72em; font-weight: 700; color: #5a6b80; }
.dash { display: grid; grid-template-columns: 18% 1fr; min-height: 16em; }
.dash__side { padding: 0.9em 0.7em; background: #0a1929; border-bottom-left-radius: 1.1em; display: grid; align-content: start; gap: 0.6em; }
.dash__side span { height: 0.55em; border-radius: 1em; background: rgba(255, 255, 255, 0.18); }
.dash__side span:first-child { background: var(--color-accent-500); }
.dash__main { padding: 0.9em 1em 1em; display: grid; gap: 0.8em; align-content: start; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.dash__kpi { padding: 0.6em; border-radius: 0.6em; background: #f4f6fa; }
.dash__kpi small { display: block; font-size: 0.62em; font-weight: 700; color: #5a6b80; text-transform: uppercase; letter-spacing: 0.04em; }
.dash__kpi span { display: block; height: 0.8em; margin-top: 0.4em; border-radius: 1em; background: linear-gradient(90deg, #dbe4ef, #eef2f7, #dbe4ef); background-size: 200% 100%; }
.dash__chart { position: relative; height: 8.5em; padding: 0.6em 0.6em 0; border-radius: 0.6em; background: #f4f6fa; overflow: hidden; }
.bars { position: absolute; inset: auto 0.6em 0 0.6em; height: 80%; display: flex; align-items: flex-end; gap: 6%; }
.bars span { flex: 1; height: var(--h); border-radius: 0.3em 0.3em 0 0; background: linear-gradient(180deg, #1459b3, #8cc4ff); transform-origin: bottom; }
.bars span:nth-child(3n) { background: linear-gradient(180deg, #e59a12, #f9b233); }
.spark { position: absolute; inset: 0.4em 0.4em auto 0.4em; width: calc(100% - 0.8em); height: 60%; overflow: visible; }
.spark path { fill: none; stroke: #0a1929; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 0; }

/* 2. Mobile app: phone */
.ui--phone { left: 0; bottom: 2%; width: 30%; padding: 0.45em; border-radius: 1.6em; background: #111c2a; border: 1px solid rgba(255, 255, 255, 0.15); }
.ui--phone .ui__tag { left: 50%; transform: translateX(-50%); background: #4ade80; }
.phone { position: relative; overflow: hidden; border-radius: 1.2em; background: #fff; aspect-ratio: 9 / 17.5; display: flex; flex-direction: column; }
.phone__notch { width: 34%; height: 0.8em; margin: 0.35em auto 0; border-radius: 1em; background: #111c2a; }
.phone__head { padding: 0.6em 0.7em 0.3em; font-size: 0.85em; font-weight: 800; }
.phone__list { list-style: none; margin: 0; padding: 0 0.5em; display: grid; gap: 0.45em; }
.phone__list li { display: grid; grid-template-columns: 1.7em 1fr; gap: 0.4em; align-items: center; padding: 0.45em; border-radius: 0.6em; background: #f4f6fa; }
.phone__list li > i { width: 1.7em; height: 1.7em; border-radius: 0.5em; background: #0a1929; }
.phone__list li:nth-child(2) > i { background: #1459b3; }
.phone__list li:nth-child(3) > i { background: #e59a12; }
.phone__list b { display: block; height: 0.5em; width: 80%; border-radius: 1em; background: #cbd5e1; }
.phone__list em { display: inline-block; margin-top: 0.3em; padding: 0.1em 0.5em; border-radius: 1em; font-size: 0.55em; font-style: normal; font-weight: 800; }
.pill--green { background: #dcfce7; color: #166534; }
.pill--blue { background: #dbeafe; color: #1e40af; }
.pill--gold { background: #fef3c7; color: #92400e; }
.phone__nav { margin-top: auto; display: flex; justify-content: space-around; padding: 0.6em; border-top: 1px solid #eef2f7; }
.phone__nav span { width: 0.9em; height: 0.9em; border-radius: 0.3em; background: #cbd5e1; }
.phone__nav span:first-child { background: #0a1929; }

/* 3. AI assistant: chat */
.ui--chat { right: 0; top: 0; width: 44%; padding: 0.9em; background: #fff; display: grid; gap: 0.55em; }
.ui--chat .ui__tag { left: auto; right: 1em; }
.chat__head { display: flex; align-items: center; gap: 0.5em; font-size: 0.78em; font-weight: 800; }
.chat__avatar { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #0a1929; color: var(--color-accent-500); font-size: 0.85em; }
.chat__online { width: 0.55em; height: 0.55em; margin-left: auto; border-radius: 50%; background: #4ade80; }
.chat__msg { max-width: 88%; padding: 0.5em 0.75em; border-radius: 0.9em; font-size: 0.72em; line-height: 1.35; font-weight: 600; }
.chat__msg--user { justify-self: end; background: #0a1929; color: #fff; border-bottom-right-radius: 0.25em; }
.chat__msg--bot { justify-self: start; background: #f1f4f8; color: #0f172a; border-bottom-left-radius: 0.25em; }
.chat__reply { display: grid; justify-items: start; }
.chat__reply > * { grid-area: 1 / 1; }  /* typing dots and reply share one slot: no height jump */
.chat__typing { display: flex; align-self: start; gap: 0.25em; padding: 0.55em 0.75em; border-radius: 0.9em; background: #f1f4f8; opacity: 0; }
.chat__typing span { width: 0.45em; height: 0.45em; border-radius: 50%; background: #94a3b8; }

/* 4. Cloud & DevOps: terminal */
.ui--deploy { right: 2%; bottom: 0; width: 46%; padding: 0.8em 0.95em 0.9em; background: #06111d; border: 1px solid rgba(255, 255, 255, 0.12); font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
.ui--deploy .ui__tag { background: #c4a5ff; font-family: var(--font-sans); }
.term p { margin: 0; font-size: 0.72em; line-height: 1.7; color: #c6d2e0; white-space: nowrap; overflow: hidden; }
.term .ok { color: #4ade80; }
.term .caret { display: inline-block; width: 0.5em; height: 1em; vertical-align: -0.15em; background: #c6d2e0; }

/* Motion (only when the visitor allows it; the static state above is complete on its own) */
@media (prefers-reduced-motion: no-preference) {
  .ui--dash { animation: bob 8s ease-in-out infinite; }
  .ui--phone { animation: bob 7s ease-in-out -2s infinite; }
  .ui--chat { animation: bob 9s ease-in-out -4s infinite; }
  .ui--deploy { animation: bob 7.5s ease-in-out -1s infinite; }
  @keyframes bob { 50% { transform: translateY(-0.6em); } }
  .ui--phone .ui__tag { animation: none; }

  .bars span { animation: grow 3.2s var(--ease-out) infinite alternate; animation-delay: calc(var(--i) * -0.4s); }
  @keyframes grow { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
  .spark path { animation: draw 6s ease-in-out infinite; }
  @keyframes draw { 0% { stroke-dashoffset: 260; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
  .dash__kpi span { animation: shimmer 2.4s linear infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }

  .phone__list li { animation: slide-in 7s var(--ease-out) infinite both; animation-delay: calc(var(--i) * 0.5s); }
  @keyframes slide-in { 0% { opacity: 0; transform: translateX(-1.5em); } 10%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

  .chat__msg--user { animation: chat-user 8s ease infinite both; }
  .chat__typing { animation: chat-typing 8s ease infinite both; }
  .chat__msg--bot { animation: chat-bot 8s ease infinite both; }
  .chat__typing span { animation: typing-bounce 1s ease-in-out infinite; }
  .chat__typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat__typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes chat-user { 0%, 5% { opacity: 0; transform: translateY(0.6em); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes chat-typing { 0%, 14% { opacity: 0; } 17%, 34% { opacity: 1; } 37%, 100% { opacity: 0; } }
  @keyframes chat-bot { 0%, 34% { opacity: 0; transform: translateY(0.6em); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes typing-bounce { 50% { transform: translateY(-0.3em); } }

  .term p { animation: type-line 7s steps(28, end) infinite both; animation-delay: calc(var(--i) * 0.9s); }
  @keyframes type-line { 0% { max-width: 0; } 14%, 90% { max-width: 100%; } 100% { max-width: 100%; opacity: 0; } }
  .term .caret { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  .hero__glow { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--color-dark-section); color: rgba(255, 255, 255, 0.85); padding-block: var(--space-5) var(--space-8); }
.page-hero h1 { color: var(--color-white); font-size: var(--text-4xl); max-width: 22ch; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.page-hero__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin-bottom: var(--space-2); border-radius: var(--radius-md); background: rgba(249, 178, 51, 0.15); color: var(--color-accent-500); }
.page-hero .btn-row { margin-top: var(--space-3); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: var(--space-3); font-size: var(--text-sm); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, 0.75); }
.breadcrumb a { color: var(--color-link-on-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--color-white); }
.breadcrumb .icon { width: 14px; height: 14px; opacity: 0.6; }

/* ---------- Section header ---------- */
.section-header { max-width: 720px; margin-bottom: var(--space-5); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .lead { margin-inline: auto; }
.eyebrow { display: block; margin-bottom: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-link); }
.section--dark .eyebrow { color: var(--color-accent-500); }
.section--dark .lead { color: rgba(255, 255, 255, 0.8); }
.section-footer { margin-top: var(--space-5); text-align: center; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-3); transition: box-shadow var(--duration-base), transform var(--duration-base), border-color var(--duration-base);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--color-border-strong); }
.card h3 { margin-bottom: var(--space-1); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card p { color: var(--color-text-muted); }
.card__footer { margin-top: auto; padding-top: var(--space-2); }
.card__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; margin-bottom: var(--space-2); border-radius: var(--radius-md); background: var(--color-tint); color: var(--color-link); }
.card__icon .icon { width: 26px; height: 26px; }

.project-card { padding: 0; overflow: hidden; }
.project-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-media-bg); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--duration-slow) var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-3); }
.project-card__meta { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-link); margin-bottom: 4px; }

.product-card { display: grid; gap: var(--space-3); padding: 0; overflow: hidden; }
.product-card__media { aspect-ratio: 16 / 9; background: var(--color-tint); display: flex; align-items: center; justify-content: center; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-card__initial { font-size: 4rem; font-weight: var(--weight-extrabold); color: var(--color-heading); }
.product-card__body { padding: 0 var(--space-3) var(--space-3); display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  .product-card--wide { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .product-card--wide .product-card__media { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .product-card--wide .product-card__body { padding: var(--space-5) var(--space-5) var(--space-5) 0; }
}

.testimonial-card { gap: var(--space-2); }
.testimonial-card .icon { color: var(--color-accent-500); width: 32px; height: 32px; }
.testimonial-card blockquote { margin: 0; font-size: var(--text-lg); color: var(--color-text); }
.testimonial-card figcaption { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; }
.testimonial-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card cite { font-style: normal; font-weight: var(--weight-bold); color: var(--color-heading); display: block; }

.team-card { text-align: center; padding: var(--space-3); }
.team-card img { width: 160px; height: 160px; margin: 0 auto var(--space-2); border-radius: 50%; object-fit: cover; }
.team-card__avatar {
  display: grid; place-items: center; width: 160px; height: 160px; margin: 0 auto var(--space-2); border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700)); color: var(--color-accent-500);
  font-size: 3rem; font-weight: var(--weight-extrabold); letter-spacing: 0.02em;
}
.team-card__role { color: var(--color-link); font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }

/* ---------- Lists & chips ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--color-success-bg); color: var(--color-success); }
.check-list--cols { grid-template-columns: 1fr; }
@media (min-width: 768px) { .check-list--cols { grid-template-columns: 1fr 1fr; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip { display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--color-tint); color: var(--color-chip-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.chips--sm .chip { padding: 3px 10px; font-size: var(--text-xs); }

/* ---------- Trust bar ---------- */
.trust { padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); }
.trust__label { text-align: center; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: var(--space-6); padding-right: var(--space-6); list-style: none; }
.marquee__set img { height: 56px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter var(--duration-base), opacity var(--duration-base); }
.marquee__set img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-5); text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__value { display: block; font-size: var(--text-4xl); font-weight: var(--weight-extrabold); color: var(--color-heading); line-height: 1; }
.stats__label { display: block; margin-top: var(--space-1); color: var(--color-text-muted); font-weight: var(--weight-semibold); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; }
.step { position: relative; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.section--dark .step { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: var(--space-2); font-size: var(--text-3xl); font-weight: var(--weight-extrabold); color: var(--color-accent-500); line-height: 1;
}
.step h3 { margin-bottom: var(--space-1); }
.step p { margin: 0; }

/* ---------- Filter pills ---------- */
.filters { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-5); }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-body-strong); font-weight: var(--weight-semibold); text-decoration: none; }
.filters a:hover { border-color: var(--color-heading); color: var(--color-heading); }
.filters a[aria-current="true"] { background: var(--color-inverse-bg); border-color: var(--color-inverse-bg); color: var(--color-inverse-text); }

/* ---------- Accordion (native <details>) ---------- */
.accordion { display: grid; gap: var(--space-1); }
.accordion details { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); min-height: 56px; cursor: pointer; list-style: none;
  font-weight: var(--weight-bold); color: var(--color-heading);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { flex-shrink: 0; transition: transform var(--duration-fast); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-md); }
.accordion__body { padding: 0 var(--space-3) var(--space-3); color: var(--color-body-strong); }
.accordion__body > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--color-dark-section), var(--color-dark-section-2)); color: rgba(255, 255, 255, 0.85); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-3); text-align: center; }
.cta-band h2 { color: var(--color-white); font-size: var(--text-3xl); max-width: 24ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: 0 auto var(--space-3); }
@media (min-width: 768px) { .cta-band { padding: var(--space-8) var(--space-6); } }

/* ---------- Content blocks ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-5); }
.prose p, .prose li { color: var(--color-body-strong); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--space-2); }
.panel { padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.panel h3 { font-size: var(--text-lg); }
.meta-list { display: grid; gap: var(--space-2); margin: 0; }
.meta-list dt { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.meta-list dd { margin: 0; font-weight: var(--weight-semibold); color: var(--color-heading); }
.case-section { margin-bottom: var(--space-5); }
.case-section h2 { font-size: var(--text-2xl); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.price-callout { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.price-callout__amount { font-size: var(--text-4xl); font-weight: var(--weight-extrabold); color: var(--color-heading); line-height: 1; }
@media (min-width: 768px) { .price-callout { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Pricing ---------- */
.plan { padding: var(--space-4) var(--space-3); }
.plan--featured { border: 2px solid var(--color-heading); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: var(--radius-pill); background: var(--color-accent-500); color: var(--color-navy-900); font-size: var(--text-xs); font-weight: var(--weight-extrabold); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.card .plan__price, .plan__price { margin: var(--space-2) 0 var(--space-3); font-size: var(--text-3xl); font-weight: var(--weight-extrabold); color: var(--color-heading); }
.plan__price small { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.plan .check-list { margin-bottom: var(--space-4); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-3); }
.form-row { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: var(--weight-semibold); color: var(--color-heading); }
.field .optional { font-weight: var(--weight-regular); color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-input-border); border-radius: var(--radius-md);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(47, 125, 225, 0.25); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--color-error); }
.field__error { margin: 6px 0 0; color: var(--color-error); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.field__help { margin: 6px 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.form-alert { padding: var(--space-2); border-radius: var(--radius-md); background: var(--color-error-bg); color: var(--color-error); font-weight: var(--weight-semibold); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card { padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .form-card { padding: var(--space-5); } }

.contact-list { list-style: none; display: grid; gap: var(--space-3); }
.contact-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.contact-list .icon { flex-shrink: 0; width: 44px; height: 44px; padding: 11px; border-radius: var(--radius-md); background: var(--color-tint); color: var(--color-link); }
.contact-list strong { display: block; color: var(--color-heading); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); background: var(--color-media-bg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-950); color: rgba(255, 255, 255, 0.75); padding-block: var(--space-8) var(--space-4); font-size: var(--text-sm); }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.site-footer h2 { font-size: var(--text-base); color: var(--color-white); margin-bottom: var(--space-2); letter-spacing: 0; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); color: var(--color-white) !important; font-size: var(--text-lg); font-weight: var(--weight-extrabold); }
.footer-brand img { width: 40px; }
.social { list-style: none; display: flex; gap: var(--space-1); margin-top: var(--space-2); }
.social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; }
.social a:hover { background: var(--color-white); color: var(--color-navy-900); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-1);
  padding: var(--space-1) var(--container-pad) calc(var(--space-1) + env(safe-area-inset-bottom));
  background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(10, 25, 41, 0.08);
}
body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- AI chat widget ---------- */
.chat-launcher {
  position: fixed; right: var(--space-2); bottom: calc(var(--mobile-bar-h) + var(--space-1) + env(safe-area-inset-bottom)); z-index: 95;
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 0;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--color-white);
}
.chat-launcher__robot {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--color-navy-900); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: var(--shadow-lg);
  transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base);
}
.chat-launcher__robot .icon { color: var(--color-accent-500); }
.chat-launcher__robot lottie-player { position: absolute; inset: -18%; width: 136%; height: 136%; opacity: 0; transition: opacity var(--duration-slow); }
.chat-launcher.is-animated .chat-launcher__robot { background: transparent; border-color: transparent; box-shadow: none; filter: drop-shadow(0 10px 20px rgba(13, 71, 161, 0.35)); }
.chat-launcher.is-animated .chat-launcher__robot lottie-player { opacity: 1; }
.chat-launcher.is-animated .chat-launcher__robot > .icon { opacity: 0; }
.chat-launcher:hover .chat-launcher__robot, .chat-launcher:focus-visible .chat-launcher__robot { transform: scale(1.08) translateY(-3px); }
.chat-launcher__label {
  display: none; order: -1; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--color-navy-900); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: var(--shadow-md);
  font-size: var(--text-sm); font-weight: var(--weight-bold); white-space: nowrap;
}
@media (min-width: 768px) {
  .chat-launcher { bottom: var(--space-3); right: var(--space-3); }
  .chat-launcher__robot { width: 88px; height: 88px; }
  .chat-launcher__label { display: inline-block; }
}
.chat-open .chat-launcher { display: none; }
.chat-panel {
  position: fixed; right: var(--space-2); left: var(--space-2); bottom: var(--space-2); z-index: 110;
  display: flex; flex-direction: column; max-height: min(600px, calc(100vh - 32px));
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(10, 25, 41, 0.3); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
@media (min-width: 768px) { .chat-panel { left: auto; width: 380px; right: var(--space-3); bottom: var(--space-3); } }
.chat-panel__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); padding: var(--space-2); background: var(--color-navy-900); color: var(--color-white); }
.chat-panel__header img { width: 32px; height: 32px; border-radius: 8px; background: var(--color-white); }
.chat-panel__title { display: flex; align-items: center; gap: 10px; }
.chat-panel__title strong { display: block; }
.chat-panel__title span { font-size: var(--text-xs); opacity: 0.85; }
.chat-panel__close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; border-radius: var(--radius-sm); color: var(--color-white); cursor: pointer; }
.chat-panel__body { flex: 1; min-height: 240px; overflow-y: auto; padding: var(--space-2); background: var(--color-bg-alt); }
.chat-messages { display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: var(--text-sm); line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg--user { align-self: flex-end; background: var(--color-inverse-bg); color: var(--color-inverse-text); border-bottom-right-radius: 4px; }
.chat-msg--model { align-self: flex-start; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-bottom-left-radius: 4px; }
.chat-panel__form { display: flex; gap: var(--space-1); padding: 12px; border-top: 1px solid var(--color-border); }
.chat-panel__form input { flex: 1; min-height: 44px; padding: 0 12px; font: inherit; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-input-border); border-radius: var(--radius-md); }
.chat-panel__form button { min-height: 44px; }
.typing-dot { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--color-input-border); animation: typing 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ---------- Error pages ---------- */
.error-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: var(--weight-extrabold); color: var(--color-accent-500); line-height: 1; margin-bottom: var(--space-2); }

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; }
  .marquee__set { flex-wrap: wrap; justify-content: center; padding-right: 0; gap: var(--space-4); }
  .marquee__set[aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .mobile-bar, .chat-launcher, .chat-panel, .cta-band { display: none !important; }
}

/* ---------- Without JavaScript: keep navigation usable ---------- */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; }
.no-js .site-header__inner { flex-wrap: wrap; }
.no-js .nav-dropdown:hover .nav-dropdown__menu,
.no-js .nav-dropdown:focus-within .nav-dropdown__menu { display: block; }
.no-js .chat-launcher { display: none; }

.price-callout p { margin: 0; }
.price-callout__amount--text { font-size: var(--text-2xl); }
.h-sm { font-size: var(--text-2xl); }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--color-inverse-bg); color: var(--color-inverse-text); }

.center .lead { margin-inline: auto; }
.center .chips { justify-content: center; }

/* Grid/flex children must be allowed to shrink below their content width (e.g. wide images). */
.grid > *, .split > *, .hero__layout > * { min-width: 0; }
.product-card__media img { object-position: left top; }

/* ---------- Theme toggle (light / dark) ---------- */
.site-header__inner { justify-content: flex-start; }
.brand { margin-right: auto; }
.theme-toggle {
  order: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-heading); cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.theme-toggle:hover { background: var(--color-tint); border-color: var(--color-border-strong); }
.theme-toggle .icon { width: 20px; height: 20px; }
.nav-toggle { order: 3; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
@media (min-width: 1024px) {
  .site-nav { order: 2; }
  .theme-toggle { order: 3; width: 44px; height: 44px; margin-left: var(--space-1); }
}

/* Dark-mode friendly details */
.marquee__set img { background: var(--color-logo-bg); padding: 6px; border-radius: var(--radius-sm); }

@media (max-width: 400px) {
  .brand { font-size: var(--text-base); gap: 8px; white-space: nowrap; }
  .brand img { width: 36px; }
  .theme-toggle, .nav-toggle { width: 44px; height: 44px; }
  .site-header__inner { gap: var(--space-1); }
}

.office-list { list-style: none; display: grid; gap: var(--space-1); margin-bottom: var(--space-2); }
