/* Intravo marketing site — shared styles.
 * Brand tokens come from Intravo Brand Assets/AI/brand-tokens.css. Lead with Lavender,
 * anchor with Galactic; Schibsted Grotesk only; never gradient or fade a brand colour.
 */

.language-fallback { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px var(--gx); background: var(--lav-100); }
.lang-opt { text-decoration: none; }

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --lav-100: #ECDAF4;
  --lav-300: #E0BDEA;
  --lav-700: #813C8E;
  --lav-800: #693276;
  --gal-100: #DBF0E4;
  --gal-300: #87C9AB;
  --gal-600: #59AE8A;
  --nebula: #F7F4F2;
  --onyx: #12130F;
  --white: #FFFFFF;
  --ink-2: #3B3C35;
  --muted: #55564D;
  --dark-1: #1C1D18;
  --dark-2: #26271F;
  --dark-line: #34352C;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Fluid gutter: 64px, growing so content never exceeds 1312px on wide screens. */
  --gx: max(64px, calc((100% - 1312px) / 2));
  --hero-h1: 96px;
  --cyc: 98px;
  --radius: 24px;
}
html[lang="ja"], html[lang="zh"] { --hero-h1: 80px; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-weight: 500;
  color: var(--onyx);
  background: var(--nebula);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--lav-700); }
a:hover { color: var(--lav-800); }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--gal-300); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gal-300); outline-offset: 1px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { display: block; }
html[dir="rtl"] body { text-align: right; }

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

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--lav-700); color: var(--white); text-decoration: none;
  font-size: 18px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--lav-800); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--lav-700); border: 1.5px solid var(--lav-700); }
.btn-ghost:hover { background: var(--lav-100); color: var(--lav-800); }
.btn-light { background: var(--white); color: var(--lav-800); }
.btn-light:hover { background: var(--lav-100); color: var(--lav-800); }
.btn[disabled] { opacity: .7; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; }

/* ---------------------------------------------------------------- tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.t-only { background: var(--lav-700); color: var(--white); }
.t-depth { background: var(--lav-100); color: var(--lav-800); }
.t-inc { border: 1px solid var(--lav-800); color: var(--lav-800); }
.dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--gal-300); }
.dk .t-only { background: var(--gal-300); color: var(--onyx); }
.dk .t-only .dot { background: var(--onyx); }
.dk .t-inc, .pu .t-inc { border-color: var(--lav-100); color: var(--lav-100); }
.pu .t-only { background: var(--white); color: var(--lav-800); }

/* -------------------------------------------------- section primitives */
.sec { padding: 88px var(--gx); }
.sec-white { background: var(--white); }
.sec-nebula { background: var(--nebula); }
.sec-lav { background: var(--lav-100); }
.sec-purple { background: var(--lav-700); color: var(--white); }
.sec-deep { background: var(--lav-800); color: var(--white); }
.sec-dark { background: var(--onyx); color: var(--white); }
.eb, .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lav-800); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gal-300); display: block; flex-shrink: 0; }
.sec-dark .eyebrow, .sec-purple .eyebrow, .sec-deep .eyebrow, .dk .eb, .pu .eb { color: var(--lav-100); }
.h1 { margin: 18px 0 0; font-size: 68px; line-height: 1.03; font-weight: 600; letter-spacing: -.035em; }
.h2 { margin: 16px 0 0; font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.h3 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.accent { color: var(--lav-700); }
.sec-dark .accent, .sec-purple .accent, .sec-deep .accent { color: var(--gal-300); }
.lede { margin: 20px 0 0; font-size: 19px; line-height: 1.55; max-width: 620px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.sec-head > :first-child { max-width: 780px; }
.sec-head > p { margin: 0; max-width: 440px; font-size: 19px; line-height: 1.55; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--white); border: 1px solid var(--lav-300); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card h3 { margin: 14px 0 6px; font-size: 22px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; }
.card .why { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--lav-300); font-size: 14px; line-height: 1.45; }
.card .why strong { font-weight: 600; color: var(--lav-700); }
.sec-dark .card, .card-dark { background: var(--dark-1); border-color: var(--dark-line); color: var(--white); }

/* Feature row (icon + name + tag + one line) */
.fr { display: flex; gap: 14px; align-items: flex-start; }
.fi { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--white); border: 1px solid var(--lav-300); color: var(--lav-700); display: flex; align-items: center; justify-content: center; }
.fi svg, .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dk .fi { background: #1F201A; border-color: var(--dark-line); color: var(--gal-300); }
.pu .fi { background: var(--lav-800); border-color: var(--lav-800); color: var(--white); }
.fn { font-size: 17px; font-weight: 600; line-height: 1.25; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.dk .fn, .pu .fn { color: var(--white); }
.dk .fd, .pu .fd { color: var(--lav-100); }

/* Mock frames */
.mock { background: var(--white); border: 1px solid var(--lav-300); border-radius: 18px; overflow: hidden; }
.mock-dark { background: var(--dark-1); border: 1px solid var(--dark-line); border-radius: 18px; color: var(--white); overflow: hidden; }
.mock-bar { height: 40px; padding: 0 16px; background: var(--onyx); color: var(--white); display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* CTA band + photo band */
.cta-band { padding: 64px var(--gx); background: var(--onyx); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band h2 { margin: 0; font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; }
.cta-band p { margin: 10px 0 0; color: var(--lav-100); font-size: 17px; }
.cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.photo-band { position: relative; min-height: 420px; display: flex; align-items: flex-end; padding: 64px var(--gx); color: var(--white); overflow: hidden; background: var(--onyx); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) saturate(.8); }
.photo-band > * { position: relative; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; }
.field input, .field select, .field textarea {
  height: 52px; padding: 0 16px; border: 1.5px solid var(--lav-800); border-radius: 12px;
  background: var(--white); color: var(--onyx); font-size: 17px;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
[aria-invalid="true"] { border-color: #B3261E !important; }
.field-err { font-size: 14px; color: #B3261E; }
.form-card { padding: 44px; background: var(--white); border: 1px solid var(--lav-300); border-radius: 28px; }
.form-ok { padding: 12px 16px; border-radius: 12px; background: var(--gal-100); font-size: 15px; text-align: center; }

/* ---------------------------------------------------- utility bar + header */
.ubar { background: var(--lav-800); color: var(--white); font-size: 14px; }
.ubar-in { height: 36px; padding: 0 var(--gx); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ubar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ubar a:hover { color: var(--lav-100); }
.ubar-num { font-weight: 600; }
.phone-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.phone-pair a { white-space: nowrap; }
.ubar-in { flex-wrap: wrap; height: auto; min-height: 36px; padding-block: 7px; gap: 6px 24px; }
.international-phone { display: inline-flex; margin-inline-start: 16px; font-size: 16px; color: inherit; white-space: nowrap; direction: ltr; }
.ubar-teams { color: var(--lav-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--nebula); border-bottom: 1px solid var(--lav-300); transition: box-shadow .2s ease; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(18, 19, 15, .08); }
.hdr { height: 88px; padding: 0 var(--gx); display: flex; align-items: center; gap: 36px; }
.hdr-logo img { display: block; width: 152px; height: 34px; }
.hdr-nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.hdr-nav a, .hdr-signin { color: var(--onyx); text-decoration: none; white-space: nowrap; }
.hdr-nav a:hover, .hdr-signin:hover { color: var(--lav-700); }
.hdr-nav a[aria-current="page"] { color: var(--lav-700); font-weight: 600; }
.hdr-spacer { flex-grow: 1; }
.hdr-signin { font-size: 16px; }
.hdr-burger { display: none; width: 48px; height: 48px; border: 1.5px solid var(--lav-700); border-radius: 999px; background: var(--white); color: var(--onyx); align-items: center; justify-content: center; cursor: pointer; }

.lang { position: relative; }
.lang-btn { height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1.5px solid var(--lav-700); background: var(--white); color: var(--onyx); display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.lang-menu { position: absolute; top: 54px; right: 0; z-index: 70; width: 248px; max-height: min(448px, calc(100vh - 144px)); max-height: min(448px, calc(100dvh - 144px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 8px; background: var(--white); border: 1px solid var(--lav-300); border-radius: 18px; box-shadow: 0 18px 48px rgba(18, 19, 15, .14); display: flex; flex-direction: column; gap: 2px; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu-h { padding: 8px 12px 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lav-800); }
.lang-opt { height: 44px; min-height: 44px; flex-shrink: 0; padding: 0 12px; border: 0; border-radius: 12px; background: var(--white); color: var(--onyx); display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 500; cursor: pointer; text-align: start; }
.lang-opt:hover, .lang-opt:focus-visible { background: var(--nebula); }
.lang-opt[aria-checked="true"] { background: var(--lav-100); }
.lang-opt .lang-check { visibility: hidden; }
.lang-opt[aria-checked="true"] .lang-check { visibility: visible; }

.mnav { border-top: 1px solid var(--lav-300); background: var(--nebula); padding: 12px 16px 24px; }
.mnav nav { display: flex; flex-direction: column; gap: 4px; }
.mnav nav > a:not(.btn) { min-height: 48px; display: flex; align-items: center; color: var(--onyx); text-decoration: none; font-size: 20px; border-bottom: 1px solid var(--lav-100); }
.mnav nav > a[aria-current="page"] { color: var(--lav-700); font-weight: 600; }
.mnav .btn { margin-top: 16px; width: 100%; }
.mnav-tel { justify-content: center; gap: 8px; font-size: 17px !important; border: 0 !important; color: var(--lav-800) !important; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--white); border-top: 1px solid var(--lav-300); }
.ftr { padding: 40px var(--gx) 28px; display: flex; gap: 64px; }
.ftr-brand { width: 400px; display: flex; flex-direction: column; gap: 14px; }
.ftr-brand img { display: block; width: 152px; height: 34px; }
.ftr-brand p { margin: 0; font-size: 15px; line-height: 1.5; }
.ftr-tel { color: var(--lav-800); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ftr-col { width: 210px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ftr-h { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lav-800); margin-bottom: 2px; }
.ftr-col a { color: var(--onyx); text-decoration: none; }
.ftr-col a:hover { color: var(--lav-700); text-decoration: underline; }
.ftr-legal { margin: 0 var(--gx); min-height: 59px; border-top: 1px solid var(--lav-300); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; padding-right: 88px; }
.ftr-legal-links { display: flex; gap: 24px; }
.ftr-legal-links a { color: var(--onyx); }

/* --------------------------------------------------------- chat widget */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
html[dir="rtl"] .chat { right: auto; left: 24px; align-items: flex-start; }
.chat > * { pointer-events: auto; }
.chat-panel { width: 380px; height: min(620px, calc(100vh - 120px)); background: var(--white); border: 1px solid var(--lav-300); border-radius: 24px; box-shadow: 0 18px 48px rgba(18, 19, 15, .18); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { height: 76px; flex-shrink: 0; padding: 0 16px 0 20px; background: var(--lav-700); color: var(--white); display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lav-800); display: flex; align-items: center; justify-content: center; }
.chat-avatar img { width: 22px; height: 22px; display: block; }
.chat-head-t { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.chat-title { font-size: 17px; font-weight: 600; }
.chat-status { font-size: 13px; color: var(--lav-100); display: flex; align-items: center; gap: 6px; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gal-300); display: block; }
.chat-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lav-800); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-scroll { flex-grow: 1; min-height: 0; display: flex; flex-direction: column-reverse; overflow-y: auto; background: var(--nebula); }
.chat-log { padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; justify-content: flex-start; }
.chat-row p { margin: 0; max-width: 270px; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--white); color: var(--onyx); font-size: 15px; line-height: 1.45; }
.chat-row.me { justify-content: flex-end; }
.chat-row.me p { background: var(--lav-700); color: var(--white); border-radius: 16px 4px 16px 16px; }
.chat-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.chat-topics button { height: 48px; border: 1px solid var(--lav-700); border-radius: 14px; background: var(--white); color: var(--lav-800); font-size: 15px; cursor: pointer; }
.chat-topics button:hover { background: var(--lav-100); }
.chat-typing { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--white); border: 1px solid var(--lav-100); display: flex; align-items: center; gap: 5px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lav-700); display: block; animation: chatDot 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
.chat-trial { align-self: flex-start; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--lav-700); color: var(--white); display: flex; align-items: center; text-decoration: none; font-size: 15px; }
.chat-trial:hover { color: var(--white); background: var(--lav-800); }
.chat-form { flex-shrink: 0; padding: 12px 16px 14px; border-top: 1px solid var(--lav-100); background: var(--white); display: flex; flex-direction: column; gap: 8px; }
.chat-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.chat-form input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--lav-300); border-radius: 10px; background: var(--white); font-size: 16px; color: var(--onyx); }
.chat-send { height: 44px; margin-top: 2px; border: 0; border-radius: 12px; background: var(--lav-700); color: var(--white); font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.chat-foot { height: 46px; flex-shrink: 0; padding: 0 16px; border-top: 1px solid var(--lav-100); background: var(--white); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.chat-call { color: var(--lav-800); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.chat-change { height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.chat-hello { max-width: 260px; padding: 12px 16px; border: 1px solid var(--lav-300); border-radius: 18px 18px 4px 18px; background: var(--white); color: var(--onyx); font-size: 15px; line-height: 1.4; text-align: start; box-shadow: 0 10px 28px rgba(18, 19, 15, .14); cursor: pointer; animation: chatIn .4s ease-out both, chatPop 3.2s ease-in-out .4s infinite; }
.chat-launch { width: 64px; height: 64px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--lav-700); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 28px rgba(18, 19, 15, .22); animation: chatRing 2.6s ease-out infinite; }
.chat-launch:hover { background: var(--lav-800); }
@keyframes chatDot { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes chatRing { 0%, 100% { box-shadow: 0 0 0 0 var(--lav-300); } 50% { box-shadow: 0 0 0 10px var(--lav-300); } }
@keyframes chatPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes chatIn { from { transform: translateY(8px); } to { transform: none; } }

/* ------------------------------------------------ shared keyframe loops */
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { animation: mq 60s linear infinite; }
html[dir="rtl"] .marquee { animation-direction: reverse; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.wave { animation: wave 1.1s ease-in-out infinite; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Line-draw icons (.draw on an <svg> whose shapes carry pathLength="100"):
 * fully drawn by default, without JS and with reduced motion; draw ONCE when scrolled into view. */
.js .draw :is(path, circle, rect, line, polyline, ellipse) { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1) .15s; }
.js .draw:not(.in) :is(path, circle, rect, line, polyline, ellipse) { stroke-dashoffset: 100; }

/* Marquee: one horizontal line at every width; the duplicated set only exists for the loop. */
:has(> .marquee) { overflow: hidden !important; }
main div.marquee.marquee { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; max-width: none !important; white-space: nowrap; }

/* Reveal on scroll — content stays visible when JS is off (.js is set by site.js). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw :is(path, circle, rect, line, polyline, ellipse) { stroke-dashoffset: 0 !important; }
  .marquee > [aria-hidden="true"] { visibility: hidden; }
}

/* ------------------------------------------------------------ responsive
 * The converted comp sections carry desktop inline styles; the rules below
 * reflow them at tablet and phone widths without touching the desktop look.
 */
@media (max-width: 1240px) {
  .hdr { gap: 24px; }
  .hdr-nav { gap: 20px; font-size: 15px; }
  .ubar-teams { display: none; }
}

@media (max-width: 1100px) {
  :root { --gx: 40px; --hero-h1: 72px; --cyc: 76px; }
  html[lang="ja"], html[lang="zh"] { --hero-h1: 60px; }
  .hdr-nav, .hdr-signin { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr { gap: 16px; }

  /* Layout rows (wide gaps) wrap; small icon + label rows keep shrinking instead. */
  main [style*="display: flex"][style*="gap: 24px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 28px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 32px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 36px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 40px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 44px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 48px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 56px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 64px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 72px"]:not([style*="flex-direction: column"]):not(.marquee), main [style*="display: flex"][style*="gap: 80px"]:not([style*="flex-direction: column"]):not(.marquee),
  main [style*="display: flex"][style*="justify-content: space-between"][style*="gap:"]:not([style*="flex-direction: column"]):not(.marquee) { flex-wrap: wrap !important; }
  main [style*="height:"][style*="display: grid"] { height: auto !important; }
  main [style*="width:"]:not(svg):not(img):not(span):not(i) { max-width: 100% !important; }
  main [style*="flex-shrink: 0"] { flex-shrink: 1 !important; }
  main [style*="grid-template-columns: repeat(3,"],
  main [style*="grid-template-columns: repeat(4,"],
  main [style*="grid-template-columns: repeat(5,"],
  main [style*="grid-template-columns: repeat(6,"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main article[style*="height:"] { height: auto !important; min-height: 0; }
  main article div[style*="height:"][style*="display: flex"]:not([style*="position: absolute"]) { height: auto !important; min-height: 0; }
  main .r-auto { height: auto !important; }
  main section > div[style*="height:"]:not([style*="position"]):not(.mock-fit) { height: auto !important; }
  /* Comp layout rows: "height: N; display: flex; gap: N" */
  main div[style^="height:"][style*="display: flex; gap:"]:not([style*="position"]):not([style*="align-items"]) { height: auto !important; flex-wrap: wrap !important; }
  main .r-wrap { flex-wrap: wrap !important; }
  main .r-grow { width: 100% !important; flex-basis: 100% !important; }
  main h2[style*="font-size: 60px"], main h2[style*="font-size: 56px"], main h2[style*="font-size: 52px"] { font-size: 46px !important; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .h2 { font-size: 46px; }
  .ftr { flex-wrap: wrap; gap: 32px 48px; }
  .ftr-brand { width: 100%; }
  .ftr-col { width: auto; min-width: 160px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --gx: 16px; --hero-h1: 46px; --cyc: 50px; --radius: 20px; }
  html[lang="ja"], html[lang="zh"] { --hero-h1: 38px; }
  .ubar { font-size: 13px; }
  .hdr { height: 68px; }
  .hdr-logo img { width: 124px; height: 28px; }
  .hdr .lang-btn { padding: 0 10px; }
  .hdr-cta { display: none; }

  main [style*="grid-template-columns: repeat("] { grid-template-columns: minmax(0, 1fr) !important; }
  main h1 { font-size: var(--hero-h1) !important; line-height: 1.05 !important; }
  main h2 { font-size: 34px !important; line-height: 1.1 !important; }
  main h3[style*="font-size: 32px"], main h3[style*="font-size: 30px"] { font-size: 26px !important; }
  main p[style*="font-size: 21px"], main p[style*="font-size: 19px"] { font-size: 17px !important; }
  main section[style*="padding:"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  main .r-hide { display: none !important; }
  main .r-static { position: static !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin-top: 16px; }
  main .r-scale { zoom: .6; }
  /* Fixed-layout product mocks keep their drawing and scale down as one piece. */
  main .mock-fit { zoom: .5; max-width: none !important; flex-shrink: 0 !important; }
  main .mock-fit-w { width: var(--mw) !important; }
  main .mock-fit-sm { zoom: .45; }
  /* Callouts (text + action) stack: text first, full-width action below. */
  main .callout, main div[style*="display: flex"]:has(> a[style*="flex-shrink: 0"]) { flex-direction: column !important; align-items: stretch !important; }
  main .callout > a, main div[style*="display: flex"]:has(> a[style*="flex-shrink: 0"]) > a[style*="flex-shrink: 0"] { width: 100%; justify-content: center; }
  main .callout > svg { align-self: flex-start; }
  main div[style*="display: flex"]:has(> a[href^="tel:"]) { flex-wrap: wrap !important; }
  main a[href^="tel:"] { white-space: nowrap; }
  main div[style*="display: flex"]:has(> a[style*="flex-shrink: 0"]) { flex-wrap: wrap !important; }
  main div[style*="margin-top: auto; height: 64px"] { height: auto !important; padding-top: 12px !important; padding-bottom: 12px !important; }
  main div[style*="display: flex"][style*="gap: 14px"]:not([style*="flex-direction: column"]) { flex-wrap: wrap !important; }
  main a[style*="border-radius: 999px"][style*="height:"] { white-space: nowrap; }
  main div[style*="height: 52px; display: flex; align-items: center"] { height: auto !important; min-height: 52px; flex-wrap: wrap; padding: 8px 0; gap: 6px; }
  main span[style*="height: 32px"][style*="border-radius: 999px"] { white-space: nowrap; }
  main div[style^="height:"][style*="display: flex; gap:"]:not([style*="position"]):not([style*="align-items"]) { flex-direction: column !important; }
  main div[style^="height:"][style*="display: flex; gap:"]:not([style*="position"]):not([style*="align-items"]) > * { width: 100% !important; flex-basis: auto !important; }
  main div[style^="height:"][style*="display: flex; gap:"]:not([style*="position"]):not([style*="align-items"]) > .mock-fit { width: auto !important; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 44px; }
  .h2 { font-size: 34px; }
  .lede, .sec-head > p { font-size: 17px; }
  .sec { padding: 56px var(--gx); }
  .btn { height: 52px; padding: 0 22px; font-size: 16px; white-space: normal; text-align: center; }
  .form-card { padding: 24px; }
  .cta-band h2 { font-size: 32px; }
  .ftr-legal { flex-direction: column; align-items: flex-start; padding: 16px 0 96px; }
  .chat { right: 16px; bottom: 16px; }
  html[dir="rtl"] .chat { left: 16px; }
  .chat-panel { width: calc(100vw - 32px); height: min(620px, calc(100vh - 110px)); }
  .chat-launch { width: 58px; height: 58px; }
}
