/* GTM site skin. Values come from www/review-preview/src/site.css (see www/DESIGN.md):
   light chapters only (#fff / #f5f5f7 alternating), 28px media, 22px panels, 12px fields, pill buttons.
   base.css holds the demo components (interactive samples, charts, chat, video frames);
   this file owns the page chrome and the chapter layout and loads last. */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Host Grotesk", "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #d2d2d7;
  --accent: #0a7350;
  --accent-dark: #6fdcaa;
  --jade: #eaf5ef;
  --dark: #000;
  --r-media: 28px;
  --r-panel: 22px;
  --r-field: 12px;
  --r-button: 980px;
  --r-chip: 980px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-press: 120ms;
  --t-state: 280ms;
  /* names the demo components still use */
  --bg: #fff;
  --wash: var(--soft);
  --green: var(--accent);
  --tint: var(--jade);
  --panel: #fff;
  --navy: #000;
  --navy2: #1d1d1f;
  --mint: var(--accent-dark);
  --cyan: var(--accent-dark);
  --shadow: none;
  --motion-fast: 180ms;
  --motion-panel: 280ms;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, video, svg { max-width: 100%; }
figure { margin: 0; }
p { margin: 0; line-height: 1.5; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -.028em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.6vw, 64px); }
h3 { font-size: 24px; }
html[lang="zh-CN"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.22; }
:is(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
:is(.btn, .button, .cap-tab, .scenario-tab, .department-tab, .uc-card, .contact-channel, .tip-btn, .site-nav a, .sound-toggle, .header-cta):focus-visible { border-radius: var(--focus-r, 980px); }
:is(.department-tab, .uc-card, .contact-channel) { --focus-r: var(--r-panel); }
.cap-tab { --focus-r: 22px; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 8px 30px #0003; }
.skip:focus { top: 8px; }
.wrap { width: calc(100% - 44px); max-width: 1200px; margin-inline: auto; }

/* Buttons and fields */
.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border: 0; border-radius: var(--r-button); background: rgba(120, 120, 128, .16); color: #1d1d1f; box-shadow: none; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; transition: background-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out); }
.btn:hover, .button:hover { background: rgba(120, 120, 128, .24); }
.btn.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.secondary:hover { background: var(--soft); }
.btn.small { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn:active, .button:active { transform: scale(.97); transition-duration: var(--t-press); }
/* Primary buttons: Apple-style translucent grey pill (.16 rest, .24 hover, .32 pressed); solid #e8e8ed where backdrop-filter is unsupported */
:is(.btn, .button):not(.secondary):active { background: rgba(120, 120, 128, .32); }
:is(.btn, .button):focus-visible { outline: 2px solid #0a7350; outline-offset: 3px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.btn, .button):not(.secondary) { background: #e8e8ed; }
  :is(.btn, .button):not(.secondary):hover { background: #dcdce1; }
  :is(.btn, .button):not(.secondary):active { background: #d2d2d7; }
}
input, select, textarea { width: 100%; min-width: 0; padding: 13px 15px; border: 1px solid transparent; border-radius: var(--r-field); background: var(--soft); color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color var(--t-state) var(--ease-out), background-color var(--t-state) var(--ease-out); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #fff; outline: none; }
select { min-height: 50px; }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: light frosted bar (every chapter is light) */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: background-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out); }
.site-header[data-tone="light"] { background: #fbfbfdcc; color: var(--ink); box-shadow: 0 1px 0 #0000000f; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 980px; background: #7676801f; }
.site-nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border-radius: 980px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background-color var(--t-state) var(--ease-out); }
.site-nav a:hover { background: #0000000f; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-header .header-cta { min-height: 30px; padding: 5px 14px; font-size: 13px; white-space: nowrap; }
.menu-button { display: none; place-items: center; width: 40px; height: 40px; color: inherit; }
/* Language control: the www.flowvision.tech switch (languages.css). Surfaces follow the header tone;
   the menu is nearly opaque because a blur nested inside the header's own blur cannot see the page. */
.language-switch {
  --lang-surface: #fffffffa; --lang-line: #0e211a1a; --lang-hover: #0e211a0d;
  --lang-muted: #0e211a85; --lang-accent: #2f8a5f; --lang-shadow: 0 24px 56px #0e211a2e, 0 2px 8px #0e211a14;
  position: relative; flex: 0 0 auto; color: inherit; font-family: var(--sans);
}
.language-trigger { display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: 500 13px/1 var(--sans); white-space: nowrap; }
.language-trigger:focus-visible { outline-width: 2px; outline-offset: 2px; }
.is-open .language-trigger { background: var(--lang-hover); }
.language-trigger svg:last-child { opacity: .65; transition: transform var(--t-state) var(--ease-out); }
.is-open .language-trigger svg:last-child { transform: rotate(180deg); }
.fold > summary .chev { transition: transform var(--t-state) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .language-trigger:hover, .language-menu a:hover { background: var(--lang-hover); }
}
.language-menu {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 5; width: min(240px, calc(100vw - 32px));
  max-height: calc(100svh - 96px); padding: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  border: 1px solid var(--lang-line); border-radius: 16px; background: var(--lang-surface); box-shadow: var(--lang-shadow); color: inherit;
  transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
  transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s linear var(--t-state);
}
.is-open .language-menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s; }
.language-menu p { margin: 0; padding: 10px 10px 8px; color: var(--lang-muted); font-size: 11px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.language-menu ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.language-menu li { opacity: 0; transform: translateY(5px); transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out); }
.is-open .language-menu li { opacity: 1; transform: none; transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out); transition-delay: calc(var(--i) * 16ms + 30ms); }
.language-menu a { display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 10px; color: inherit; font-size: 14px; font-weight: 450; line-height: 1.25; text-decoration: none; }
.language-menu a:focus-visible { outline-width: 2px; outline-offset: -2px; background: var(--lang-hover); }
.language-code { color: var(--lang-muted); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .05em; }
.language-menu a[aria-current] { font-weight: 550; }
.language-menu a[aria-current] .language-code, .language-menu a svg { color: var(--lang-accent); }
@media (max-width: 760px) {
  .language-trigger svg:last-child { display: none; }
  .language-menu a { min-height: 44px; }
}

/* Chapters */
.chapter { padding-block: clamp(64px, 8vw, 112px); background: #fff; }
.chapter.is-soft { background: var(--soft); }
.chapter-head { max-width: 860px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.chapter-head .section-intro, .chapter > .wrap > .section-intro { margin-top: 18px; }
.section-intro { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; }
.note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.panel-title { max-width: 820px; margin: 0 auto 32px; text-align: center; font-size: clamp(26px, 3.2vw, 40px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: calc(52px + clamp(48px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px); }
.hero { background: #fff; }
.hero-backdrop { position: absolute; inset: 0 0 auto; width: 100%; height: 70%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#fff0 0, #fff0 28%, #fff 70%); pointer-events: none; }
.reference-hero-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(40px, 6vw, 72px); text-align: center; }
.hero-copy { display: grid; justify-items: center; max-width: 1000px; }
.hero-brandline { margin: 0 0 18px; color: var(--accent); font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; }
.hero h1 { color: var(--ink); }
.hero-description { max-width: 760px; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.4; }
.hero-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: clamp(32px, 4vw, 48px); }
.hero-numbers > div { padding: 22px 18px; border-radius: var(--r-panel); background: var(--soft); text-align: center; }
.hero-numbers b { display: block; color: var(--ink); font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.hero-numbers b small { color: var(--accent); font-size: .45em; margin-left: 3px; }
.hero-numbers span { display: block; max-width: 24ch; margin: 10px auto 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hero .actions { justify-content: center; margin-top: clamp(28px, 3.6vw, 40px); }

/* Economics */
.econ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.econ-chart { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-panel); background: #fff; }
.econ-chart figcaption { margin-bottom: 18px; font-size: 17px; font-weight: 600; }
.econ-svg { width: 100%; height: auto; display: block; color: var(--ink); }
.econ-svg text { fill: currentColor; }
.econ-svg .econ-sub, .econ-svg .econ-legend text, .econ-svg .econ-val { fill: var(--muted); }
.econ-svg .econ-val-after { fill: var(--ink); font-weight: 600; }
.econ-svg .bar-before { fill: #d2d2d7; }
.econ-svg .bar-after { fill: var(--accent); }
.econ-svg .econ-rule { stroke: var(--line); }
.econ-note { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.econ-svg-narrow { display: none; }
.econ-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.econ-numbers > div { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-panel); background: #fff; }
.econ-numbers b { display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.econ-numbers b small { margin-left: 4px; color: var(--accent); font-size: .4em; }
.econ-numbers span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.econ-assumptions { margin-top: 16px; }
.econ-assumptions table { width: 100%; border-collapse: collapse; font-size: 14px; }
.econ-assumptions th, .econ-assumptions td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.econ-assumptions th { width: 22%; font-weight: 600; }
.econ-assumptions td { color: var(--muted); }
.econ-assumptions summary span { margin-left: 10px; color: var(--muted); font-size: 13px; font-weight: 400; }

/* Folds: <details> panels that keep detail one tap away */
.fold, .econ-assumptions, .faq details { border-radius: var(--r-panel); background: #fff; overflow: clip; transition: background-color var(--t-state) var(--ease-out); }
.fold > summary, .econ-assumptions > summary, .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 28px; font-size: 19px; font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker, .econ-assumptions > summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.fold > summary h3 { font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.econ-assumptions > summary::after, .faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-state) var(--ease-out); }
.econ-assumptions[open] > summary::after, .faq details[open] summary::after { transform: rotate(-135deg); }
.fold[open] > summary .chev { transform: rotate(180deg); }
.fold-body, .econ-assumptions > table, .faq details > p { padding: 0 28px 28px; }
.fold-body > *:first-child { margin-top: 0; }
.faq details > p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq details > p a { color: var(--accent); }

/* Four layers: segmented tabs */
.cap-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 40px; padding: 4px; border-radius: 26px; background: var(--soft); }
.cap-tab { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-height: 52px; padding: 8px 22px 8px 14px; border-radius: 22px; text-align: left; transition: background-color var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease-out); }
.cap-tab .cap-code { grid-row: span 2; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-chip); background: #0000000f; color: var(--muted); font-size: 12px; font-weight: 600; }
.cap-tab b { font-size: 15px; font-weight: 600; line-height: 1.2; }
.cap-tab small { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.3; }
.cap-tab[aria-selected="true"] { background: #fff; box-shadow: 0 3px 8px #0000001f, 0 0 0 .5px #0000000d; }
.cap-tab[aria-selected="true"] .cap-code { background: var(--accent); color: #fff; }
.cap-tab:not([aria-selected="true"]):hover { background: #0000000a; }
.cap-panel { margin-top: 0; }
.supply-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.supply-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-panel); background: var(--soft); }
.supply-card .supply-art { height: 176px; flex: none; }
.supply-description { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.supply-description h3 { font-size: 21px; }
.supply-description p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.supply-description a { margin-top: auto; padding-top: 6px; color: var(--accent); font-size: 15px; }
.supply-description a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cap-panel .layers { background: var(--soft); }
.route-head { text-align: center; margin-bottom: 28px; }
.route-head h3 { font-size: clamp(22px, 2.4vw, 30px); }
.route-head .section-intro { margin-top: 12px; font-size: 17px; }

/* Use-case cards: 3 x 2 equal cards; one opens at a time under its row */
.usecase-block { margin: 0; }
.usecase-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; font-size: 17px; text-align: center; }
.usecase-label b { font-size: 21px; font-weight: 600; }
.usecase-label span { color: var(--muted); }
.usecase-block > .section-intro { margin: 6px auto 28px; max-width: 760px; font-size: 17px; text-align: center; }
.uc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.uc-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 196px; padding: 26px 26px 22px; border-radius: var(--r-panel); background: #fff; text-align: left; transition: box-shadow var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out); }
.uc-card strong { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.uc-card span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.uc-card::after { content: ""; position: absolute; right: 24px; bottom: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E"); transition: transform var(--t-state) var(--ease-out), background-color var(--t-state) var(--ease-out); }
.uc-card:hover { box-shadow: 0 10px 30px #00000014; }
.uc-card[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.uc-card[aria-expanded="true"]::after { transform: rotate(45deg); }
.uc-case-view { grid-column: 1 / -1; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-media); background: #fff; }
.uc-case-view .case { padding: 0; border: 0; background: none; }
.uc-case-view .case > h4, .uc-case-view .case > p:first-of-type { display: none; }
.uc-case-view .case p { color: var(--ink); font-size: 17px; line-height: 1.55; }
.uc-case-view .case .case-result { margin-top: 14px; color: var(--accent); font-weight: 600; }
.uc-case-view .case .case-prereq { margin-top: 14px; color: var(--muted); font-size: 15px; }
.case-layers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.case-layers span { padding: 5px 12px; border-radius: var(--r-chip); background: var(--soft); color: var(--muted); font-size: 13px; }
.uc-case-view .uc-demo { margin-top: 28px; }
.scenario-fold { margin-top: 20px; }
.scenario-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 28px; padding: 4px; border-radius: 26px; background: var(--soft); }
.scenario-tab { min-height: 44px; padding: 8px 20px; border-radius: var(--r-chip); font-size: 15px; font-weight: 600; transition: background-color var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease-out); }
.scenario-tab[aria-selected="true"] { background: #fff; box-shadow: 0 3px 8px #0000001f, 0 0 0 .5px #0000000d; }
.scenario-copy h3 { font-size: clamp(22px, 2.6vw, 32px); }
.scenario-copy li::before { content: none; }

/* Employees: eight equal role tiles over one light panel */
.department-layout { display: block; }
.department-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.department-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 14px 44px; border-radius: var(--r-panel); background: #fff; color: var(--ink); text-align: center; transition: background-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease-out); }
.department-tab strong { font-size: 16px; font-weight: 600; line-height: 1.25; }
.department-tab span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.department-tab::after { content: ""; position: absolute; top: 50%; right: 12px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--soft) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E"); transition: transform var(--t-state) var(--ease-out); }
.department-tab[aria-expanded="true"]::after { transform: rotate(45deg); }
.department-tab[aria-expanded="true"] strong { color: var(--accent); }
.department-tabs > .employee-panel { grid-column: 1 / -1; }
.department-tabs > .employee-panel[hidden] { display: none; }
.employee-panel { --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --green: var(--accent); --bg: #fff; --wash: var(--soft); --panel: #fff; --tint: var(--jade); padding: clamp(22px, 3.4vw, 44px); border-radius: var(--r-media); background: #fff; color: #1d1d1f; }
.employee-fold { margin-top: 16px; }

/* Service */
.service-lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-media); background: var(--soft); }
.service-lead h3 { font-size: clamp(26px, 3vw, 40px); }
.service-lead p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.availability strong { display: block; color: var(--accent); font-size: clamp(64px, 9vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.availability strong small { margin-left: 6px; font-size: .22em; letter-spacing: 0; }
.availability p { margin-top: 12px; font-size: 15px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.service-grid article { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-panel); background: var(--soft); }
.service-grid h3 { font-size: 21px; }
.service-grid p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.capacity-example { margin-top: 14px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-panel); background: var(--jade); }
.capacity-example strong { font-size: 19px; line-height: 1.35; }
.capacity-example p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.governance { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.governance h3 { font-size: clamp(26px, 3vw, 40px); }
.governance > div > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.gov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gov-grid > div { padding: 24px; border-radius: var(--r-panel); background: var(--soft); }
.gov-grid h4 { font-size: 18px; }
.gov-grid p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Start + FAQ */
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.start-grid h2 { font-size: clamp(32px, 4vw, 52px); }
.start-grid > div:first-child > p { margin-top: 18px; color: var(--muted); font-size: 19px; line-height: 1.45; }
.start .actions { margin-top: 28px; }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-panel); background: #fff; }
.step > span:not(.tip) { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.step h3 { font-size: 19px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.faq { margin-top: clamp(56px, 8vw, 96px); max-width: 860px; }
.faq > h2 { margin-bottom: 28px; text-align: center; font-size: clamp(28px, 3.6vw, 44px); }
.faq details + details { margin-top: 10px; }
.faq summary { font-size: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 52px); }
.contact .section-intro { margin-top: 16px; font-size: 18px; }
.contact-promise { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--accent); font-size: 15px; font-weight: 600; }
.contact-promise::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.contact-channels { display: grid; gap: 10px; margin-top: 24px; }
.contact-channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 20px; border-radius: var(--r-panel); background: var(--soft); transition: background-color var(--t-state) var(--ease-out); }
.contact-channel:hover { background: #ebebef; }
.contact-channel b { display: block; font-size: 16px; font-weight: 600; }
.contact-channel small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.contact-channel > span:last-child { flex: none; color: var(--accent); font-size: 14px; font-weight: 500; white-space: nowrap; }
.contact-identity { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-identity a { color: var(--accent); }
.contact-form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-media); background: var(--soft); }
.contact-form h3 { font-size: 24px; }
.contact-form > p { color: var(--muted); font-size: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form small { color: var(--muted); font-size: 12px; }

/* Footer */
.site-footer { padding-block: 44px 26px; background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-inner .brand { color: var(--ink); }
.footer-inner > p { flex: 1; min-width: 220px; }
.footer-inner > a:not(.brand) { color: var(--accent); font-weight: 500; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; width: 100%; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Floating booking prompt (appears after half of the page) */
.sticky-cta { position: fixed; left: 50%; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px); padding: 6px 6px 6px 22px; border-radius: 980px; background: #fbfbfde6; color: var(--ink); font-size: 14px; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px #0000000f, 0 12px 34px #00000024; transform: translate(-50%, 160%); visibility: hidden; transition: transform var(--t-state) var(--ease-out), visibility 0s linear var(--t-state); }
.sticky-cta.show { transform: translate(-50%, 0); visibility: visible; transition: transform var(--t-state) var(--ease-out), visibility 0s; }
.sticky-cta .btn { flex: none; }

/* Tablet */
@media (max-width: 1100px) {
  .department-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .supply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1279px) {
  .menu-button { display: grid; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 18px; border-radius: 0; background: #fff; color: var(--ink); box-shadow: 0 16px 30px #0000001a; }
  .site-header.is-menu-open .site-nav { display: flex; }
  .site-header.is-menu-open { background: #fff; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav a { min-height: 48px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a:hover { background: none; }
}
@media (max-width: 860px) {
  .service-lead, .start-grid, .contact-grid, .governance { grid-template-columns: 1fr; }
  .econ-grid { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 767px) {
  .chapter { padding-block: 56px; }
  .chapter-head { margin-bottom: 28px; }
  .hero { padding-top: calc(52px + 40px); }
  .hero-numbers { grid-template-columns: 1fr; gap: 8px; }
  .hero-numbers > div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; }
  .hero-numbers b { font-size: 36px; }
  .hero-numbers span { margin: 0; max-width: none; font-size: 13px; }
  .econ-svg-wide { display: none; }
  .econ-svg-narrow { display: block; }
  .econ-numbers { grid-template-columns: 1fr; gap: 8px; }
  .econ-numbers > div { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px; padding: 16px 18px; }
  .econ-numbers span { margin: 0; font-size: 13px; }
  .econ-numbers b { font-size: 32px; }
  .econ-assumptions table, .econ-assumptions tbody, .econ-assumptions tr, .econ-assumptions th, .econ-assumptions td { display: block; width: 100%; }
  .econ-assumptions th { padding: 14px 0 2px; border-top: 1px solid var(--line); }
  .econ-assumptions td { padding: 0 0 12px; border: 0; }
  .econ-assumptions > table { padding: 0 20px 20px; }
  .fold > summary, .econ-assumptions > summary, .faq summary { min-height: 56px; padding: 14px 20px; font-size: 17px; }
  .fold-body, .faq details > p { padding: 0 20px 20px; }
  .cap-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .cap-tab { grid-template-columns: auto 1fr; padding: 8px 10px; min-height: 48px; }
  .cap-tab small { display: none; }
  .cap-tab b { grid-row: span 2; font-size: 14px; }
  .supply-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .supply-card .supply-art { height: 84px; }
  .supply-description { padding: 16px; gap: 8px; }
  .supply-description h3 { font-size: 17px; }
  .supply-description p { font-size: 14px; }
  .uc-cards { grid-template-columns: 1fr; gap: 10px; }
  .uc-card { min-height: 0; padding: 20px 64px 20px 20px; }
  .uc-card::after { right: 18px; bottom: auto; top: 20px; }
  .uc-case-view { padding: 20px; border-radius: var(--r-panel); }
  .scenario-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .employee-panel { padding: 18px; border-radius: var(--r-panel); }
  .service-lead { padding: 24px; border-radius: var(--r-panel); }
  .service-grid, .gov-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 80px; }
  .sticky-cta span { display: none; }
  .sticky-cta { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .sticky-cta { display: none; } }

/* Employees panel (ids beat the demo components' own rules) */
#employees .employee-panel, #employees .employee-panel:has(.employee-demo) { padding: clamp(22px, 3.4vw, 44px); border: 0; border-radius: var(--r-media); background: #fff; min-height: 0; }
#employees .employee-panel > h3 { margin-bottom: 8px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; }
#employees .employee-mission { color: var(--muted); font-size: 17px; line-height: 1.5; }
#employees .demo-view-tabs { margin: 20px 0 !important; }
#employees .demo-view-tabs button { padding: 9px 18px; font-size: 14px; }
.uc-card { min-height: 164px; }
@media (max-width: 767px) {
  .chapter { padding-block: 44px; }
  #employees .employee-panel, #employees .employee-panel:has(.employee-demo) { padding: 14px; border-radius: var(--r-panel); }
  #employees .employee-panel > h3 { font-size: 22px; }
  #employees .employee-mission { font-size: 14px; }
  .chat-thread { min-height: 0 !important; max-height: none !important; }
  .uc-card { padding: 16px 56px 16px 18px; }
  .uc-card strong { font-size: 18px; }
  .uc-card span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .service-grid article, .capacity-example, .econ-chart { padding: 18px; }
  .gov-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gov-grid > div { padding: 16px; }
  .gov-grid p, .service-grid p { font-size: 14px; }
  .step { padding: 16px; }
}
.governance-fold { margin-top: 14px; background: var(--soft); }
.governance-fold .fold-body > p { margin-bottom: 18px; color: var(--muted); font-size: 17px; }
.governance-fold .gov-grid > div { background: #fff; }
.governance-fold > summary h3 { font-size: inherit; }
@media (max-width: 767px) {
  .uc-cards { grid-template-columns: 1fr 1fr; }
  .uc-card { min-height: 0; padding: 16px 16px 48px; }
  .uc-card::after { top: auto; bottom: 14px; right: 14px; }
  .uc-card strong { font-size: 16px; }
  .uc-card span { -webkit-line-clamp: 3; font-size: 13px; }
}
@media (max-width: 767px) {
  .chapter { padding-block: 40px; }
  .chapter-head { margin-bottom: 20px; }
  .chapter-head .section-intro, .section-intro { margin-top: 12px; font-size: 16px; }
  .hero { padding: 76px 0 40px; }
  .reference-hero-content { gap: 28px; }
  .hero-description { margin-top: 16px; font-size: 16px; }
  .hero-numbers { margin-top: 24px; }
  .hero-numbers > div { padding: 10px 14px; }
  .hero .actions { margin-top: 20px; }
  .econ-chart figcaption { margin-bottom: 8px; font-size: 15px; }
  .econ-note { padding-top: 8px; font-size: 12px; }
  .econ-numbers > div { padding: 12px 16px; }
  .cap-tabs { margin-bottom: 20px; }
  .panel-title { margin-bottom: 20px; font-size: 24px; }
  .supply-card .supply-art { height: 64px; }
  .supply-description h3 { font-size: 16px; }
  .supply-description p { font-size: 13px; line-height: 1.45; }
  .fold > summary, .econ-assumptions > summary, .faq summary { min-height: 52px; padding: 12px 18px; }
  .service-lead { padding: 20px; }
  .availability strong { font-size: 64px; }
  .step { padding: 14px; gap: 12px; }
  .faq { margin-top: 36px; }
  .faq > h2 { margin-bottom: 16px; }
  .contact h2 { font-size: 32px; }
  #employees .demo-view-tabs { margin: 12px 0 !important; }
  .department-tab { min-height: 64px; padding: 10px 40px; }
}

/* Languages without a Chinese-style line break: keep long words and Korean/Japanese runs inside their boxes. */
html:not([lang^="zh"]) body { overflow-wrap: break-word; }
html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body { line-break: strict; }
html:is([lang="ru"], [lang="es-419"], [lang="pt-BR"]) :is(h2, h3) { hyphens: auto; }

/* Coupang selling-point video: hero loop (muted, sound on request) and the chapter below it */
.hero-video { position: relative; width: 100%; max-width: 1000px; margin: 0; overflow: hidden; border-radius: var(--r-media); background: var(--soft); box-shadow: 0 2px 14px #00000012; aspect-ratio: 16 / 9; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sound-toggle { position: absolute; right: 14px; bottom: 14px; min-height: 36px; padding: 7px 16px; border-radius: var(--r-chip); background: #ffffffd9; color: var(--ink); box-shadow: 0 2px 14px #00000012; font-size: 14px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color var(--t-state) var(--ease-out); }
.sound-toggle:hover { background: #fff; }
/* Coupang chapter: one supplier photo becomes a set; pictures are never shown wider than their pixels */
.coupang-set { display: grid; grid-template-columns: minmax(0, 340px) 48px minmax(0, 340px); align-items: center; justify-content: center; gap: 16px; margin: 0 auto; }
.coupang-set img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--soft); }
.coupang-source img { max-width: 469px; }
.coupang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.coupang-grid img { max-width: 232px; }
.coupang-set figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.coupang-arrow { justify-self: center; color: var(--muted); font-size: 28px; }
.coupang-points { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: clamp(32px, 4vw, 56px) auto 0; padding: 0; list-style: none; }
.coupang-points li { display: grid; align-content: start; gap: 6px; padding: 20px 18px; border-radius: var(--r-panel); background: var(--soft); }
.coupang-points b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.coupang-points span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.coupang-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: 12px auto 0; }
.coupang-ways article { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-panel); background: var(--soft); }
.coupang-ways h3 { font-size: 21px; }
.coupang-ways p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.coupang-steps { margin-top: 8px; }
.coupang .coupang-steps > summary { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.coupang-steps ul { display: grid; gap: 6px; margin: 0; padding: 0 16px 16px 2.2em; list-style: disc; font-size: 14px; line-height: 1.5; }
.coupang-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; max-width: 1000px; margin: 28px auto 0; }
.coupang-foot .note { margin: 0; }
@media (max-width: 860px) {
  .coupang-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coupang-points li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .coupang-set { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .coupang-arrow { transform: rotate(90deg); font-size: 24px; }
  .coupang-ways { grid-template-columns: 1fr; }
  .sound-toggle { right: 8px; bottom: 8px; min-height: 32px; padding: 5px 12px; font-size: 13px; }
}

/* Round 3: one component system on light chapters only.
   A box takes the opposite tone of its chapter (--card). Interactive boxes rest on a light shadow and
   lift 2px on hover (www .card-grid a); static boxes do not move. Every open/close runs 280ms on --ease-out. */
.is-white { --card: var(--soft); }
.is-soft { --card: #fff; }
.chapter.is-white, .hero.is-white { background: #fff; }
.chapter.is-soft { background: var(--soft); }
.site-footer { background: var(--soft); }

/* Card: small box, one size for every instance */
:is(.coupang-points li, .service-grid article, .step, .uc-card, .contact-channel, .gov-grid > div) { padding: 24px; border-radius: var(--r-panel); background: var(--card); }
.supply-card { border-radius: var(--r-panel); background: var(--card); }
.supply-description { padding: 24px; gap: 8px; }
.governance-fold .gov-grid > div { background: var(--soft); }
.governance-fold { background: var(--card); }
:is(.coupang-points b, .service-grid h3, .step h3, .supply-description h3, .uc-card strong, .gov-grid h4) { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
:is(.coupang-points span, .service-grid p, .supply-description p, .uc-card span, .gov-grid p) { color: var(--muted); font-size: 15px; line-height: 1.5; }
.service-grid p, .gov-grid p { margin-top: 8px; }
.coupang-points, .coupang-ways, .service-grid, .supply-grid, .uc-cards, .steps, .gov-grid, .econ-grid, .econ-numbers, .hero-numbers { gap: 14px; }
.uc-card { min-height: 164px; }
.uc-card::after { position: static; flex: none; align-self: flex-end; margin-top: auto; background-color: var(--soft); }
.is-white .uc-card::after { background-color: #fff; }
/* Number tile: hero and economics figures */
.hero-numbers > div, .econ-numbers > div { padding: 24px; border-radius: var(--r-panel); background: var(--card); }
.hero-numbers b, .econ-numbers b { font-size: clamp(36px, 4.4vw, 56px); }
.hero-numbers span, .econ-numbers span { font-size: 14px; }
/* Panel: large box */
:is(.econ-chart, .service-lead, .contact-form, .coupang-ways article, .uc-case-view, #employees .employee-panel, #employees .employee-panel:has(.employee-demo)) { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-media); background: var(--card); }
#employees .employee-panel, #employees .employee-panel:has(.employee-demo) { background: #fff; }
.coupang-ways .fold { background: var(--soft); }
/* Fold (details) panels: one summary size */
.fold, .econ-assumptions, .faq details { background: var(--card); }
.fold > summary, .econ-assumptions > summary, .faq summary { font-size: 18px; }
.coupang .coupang-steps > summary { min-height: 44px; padding: 10px 16px; font-size: 15px; }
/* Segmented tabs: one track, one pill */
.cap-tabs, .scenario-tabs { background: #7676801f; }
.cap-tab, .scenario-tab { min-height: 44px; padding: 6px 20px 6px 8px; border-radius: 980px; font-size: 15px; }
.scenario-tab { padding: 6px 20px; }
.cap-tab b { font-size: 15px; }
.cap-tab .cap-code { height: 30px; }
.cap-tab[aria-selected="true"], .scenario-tab[aria-selected="true"] { background: #fff; box-shadow: 0 3px 8px #0000001f, 0 0 0 .5px #0000000d; }
.cap-tab:not([aria-selected="true"]):hover, .scenario-tab:not([aria-selected="true"]):hover { background: #0000000a; }
.scenario-tab { transition: background-color var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease-out); }
/* Tag */
.case-layers span { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-chip); background: transparent; color: var(--muted); font-size: 13px; }
/* Text link */
:is(.faq details > p a, .contact-identity a, .footer-inner > a:not(.brand)) { color: var(--accent); font-weight: 500; text-decoration: underline transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t-state) var(--ease-out); }
:is(.faq details > p a, .contact-identity a, .footer-inner > a:not(.brand)):hover { text-decoration-color: currentColor; }

/* Interactive boxes: resting shadow, 2px lift on hover */
:is(.has-tip, .uc-card, .department-tab, .contact-channel) { position: relative; box-shadow: 0 2px 14px #00000012; transition: box-shadow var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), background-color var(--t-state) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  :is(.has-tip, .uc-card, .department-tab, .contact-channel):hover { transform: translateY(-2px); box-shadow: 0 12px 34px #00000024; }
}
.has-tip:focus-within, .has-tip:has(.tip.is-open) { transform: translateY(-2px); box-shadow: 0 12px 34px #00000024; z-index: 2; }
.contact-channel:hover { background: var(--card); }
.uc-card[aria-expanded="true"], .department-tab[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 2px 14px #00000012; }
.has-tip { padding-right: 52px; }

/* Tooltip: a 44px trigger; the bubble is hidden (visibility) until hover, focus or tap */
.tip { position: relative; display: inline-flex; vertical-align: middle; }
.has-tip > .tip { position: absolute; top: 8px; right: 8px; }
.panel-title .tip, .coupang-foot .tip, .form-submit .tip { margin-left: 4px; }
.tip-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); transition: color var(--t-state) var(--ease-out); }
.tip-btn::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #7676801f; transition: background-color var(--t-state) var(--ease-out); }
.tip-btn svg { position: relative; }
.tip-btn:hover, .tip.is-open .tip-btn { color: var(--accent); }
.tip-btn:hover::before, .tip.is-open .tip-btn::before { background: var(--jade); }
.tip-pop { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-align: left; white-space: normal; box-shadow: 0 0 0 1px #0000000f, 0 12px 34px #00000024; opacity: 0; visibility: hidden; transform: translate(var(--tip-x, 0px), -6px); pointer-events: none; transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s linear var(--t-state); }
.tip.is-open .tip-pop { opacity: 1; visibility: visible; transform: translate(var(--tip-x, 0px), 0); pointer-events: auto; transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s; }
.form-submit { display: flex; align-items: center; gap: 4px; }
.coupang-foot { gap: 12px; }
.coupang-points, .coupang-ways, .coupang-foot { max-width: none; }

/* Open, close and switch motion (site.js fvMotion): the animating element clips its own content
   inside its own rounded corners; the tab frames clip with the radius of the panels they hold */
.fv-clip { overflow: clip; }
.cap-panels.fv-clip, #scenario-panel.fv-clip { border-radius: var(--r-panel); }
.fv-moving, .uc-cards, .department-tabs, .cap-panels, .fold, .faq details { overflow-anchor: none; }

/* Phone menu: slides open instead of popping */
@media (max-width: 1279px) {
  .site-nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s linear var(--t-state); }
  .site-header.is-menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out), visibility 0s; }
}
@media (max-width: 767px) {
  :is(.coupang-points li, .service-grid article, .step, .uc-card, .contact-channel, .gov-grid > div), .supply-description, .hero-numbers > div, .econ-numbers > div { padding: 18px; }
  .has-tip { padding-right: 52px; }
  .has-tip > .tip { top: 4px; right: 4px; }
  :is(.coupang-points b, .service-grid h3, .step h3, .supply-description h3, .uc-card strong, .gov-grid h4) { font-size: 17px; }
  :is(.coupang-points span, .service-grid p, .supply-description p, .uc-card span, .gov-grid p) { font-size: 14px; }
  .uc-card { min-height: 0; }
  .hero-numbers b, .econ-numbers b { font-size: 32px; }
  .hero-numbers span, .econ-numbers span { font-size: 13px; }
  :is(.econ-chart, .service-lead, .contact-form, .coupang-ways article, .uc-case-view, #employees .employee-panel, #employees .employee-panel:has(.employee-demo)) { padding: 20px; border-radius: var(--r-panel); }
  .coupang-points, .coupang-ways, .service-grid, .supply-grid, .uc-cards, .steps, .gov-grid, .econ-grid, .econ-numbers, .hero-numbers { gap: 10px; }
  .cap-tab { padding: 6px 12px 6px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.has-tip, .uc-card, .department-tab, .contact-channel):hover, .has-tip:focus-within, .has-tip:has(.tip.is-open) { transform: none; }
  .tip-pop, .tip.is-open .tip-pop { transform: translate(var(--tip-x, 0px), 0); }
}
/* FAQ: the six questions sit inside one fold */
.faq-fold > summary h2 { font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.faq .faq-fold > summary::after { content: none; }
.faq .faq-fold > .fold-body details { background: var(--soft); }
.faq details:not([open]) > summary::after { transform: rotate(45deg); }
.faq details[open] > summary::after { transform: rotate(-135deg); }
/* Contact: booking and email stay in view; the request form opens from the row below them */
.contact-side { display: grid; gap: 10px; }
.contact-side .contact-channels { margin-top: 0; }
.contact-fold { border-radius: var(--r-panel); background: var(--card); box-shadow: 0 2px 14px #00000012; transition: box-shadow var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out); }
.contact-fold > summary { min-height: 72px; padding: 16px 24px; font-size: 16px; }
:is(.coupang-points li, .service-grid article, .step).has-tip { padding-right: 56px; }
.contact-fold > summary b { font-weight: 600; }
.contact-fold > summary .chev { color: var(--accent); }
#contact .contact-fold > .contact-form.fold-body { padding: 0 24px 24px; border-radius: 0; background: none; }
.chapter-head h2 .tip { margin-left: 4px; }
.chapter-head .tip-pop { text-align: left; letter-spacing: normal; }
.department-tab { min-height: 56px; }
@media (hover: hover) and (pointer: fine) {
  .contact-fold:not([open]):hover { transform: translateY(-2px); box-shadow: 0 12px 34px #00000024; }
}
@media (max-width: 767px) {
  .contact-fold > summary { padding: 18px; }
  #contact .contact-fold > .contact-form.fold-body { padding: 0 18px 18px; }
  .department-tab { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-fold:not([open]):hover { transform: none; }
}
/* Round 4: page order cost -> use cases -> AI teammates -> four layers -> start -> contact.
   Coupang is the first card of the use-case chapter (a panel in the opposite tone, its own boxes
   back on the chapter tone); L4 is a tab whose panel holds the governance content. */
.coupang-case { margin-bottom: 14px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-media); background: var(--soft); }
.coupang-case .coupang-ways .fold { background: var(--soft); }
.cap-panels > .cap-panel > .panel-title + .service-lead { margin-top: 0; }
/* Header: booking is the one primary button; the console is a text link beside it */
.header-link { display: inline-flex; align-items: center; min-height: 30px; padding: 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color var(--t-state) var(--ease-out); }
.header-link:hover { color: var(--ink); }
/* Five chapter names, the console link and the booking button need 1280px; below that the names
   move into the menu, and on phones the booking button gives way to the sticky bar */
@media (min-width: 1280px) { .site-nav a { padding: 0 12px; } }
@media (max-width: 1279px) { .header-link { display: none; } }
@media (max-width: 767px) { .site-header .header-cta { display: none; } }
@media (max-width: 767px) { .coupang-case { padding: 20px; border-radius: var(--r-panel); } }
/* Department cards: two per row on phones */
@media (max-width: 640px) {
  .department-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-tab strong { max-width: 100%; font-size: 15px; hyphens: auto; overflow-wrap: anywhere; }
}
