/* ARGO IDEA Phase 1 — professional boutique BI/automation studio. Huninn self-hosted for Traditional Chinese. */
@font-face {
  font-family: "Huninn";
  src: url("../assets/fonts/Huninn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #5a35ff;
  --purple-deep: #4a28e8;
  --orange: #b44712;
  --orange-soft: #fff1e6;
  --lime: #e5ff63;
  --ink: #17151c;
  --paper: #faf9f6;
  --lilac: #eee8ff;
  --muted: #3a3640;
  --white: #ffffff;
  --line: #e6e1d8;
  --header-h: 4.25rem;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 0.875rem;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-zh: "Huninn", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 8px 24px rgba(23, 21, 28, 0.06);
  --shadow-soft: 0 12px 32px rgba(23, 21, 28, 0.07);
  --fw-body: 500;
  --fw-ui: 600;
  --fw-head: 700;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 500;
  overflow-x: clip;
}

html[data-lang="zh"] body,
html[lang="zh-Hant"] body {
  font-family: var(--font-zh);
  line-height: 1.75;
  font-weight: 400;
  font-synthesis: none;
}

html[data-lang="en"] body,
html[lang="en"] body {
  font-family: var(--font);
  line-height: 1.65;
  font-weight: 500;
}

html[data-lang="zh"] button,
html[data-lang="zh"] input,
html[data-lang="zh"] select,
html[lang="zh-Hant"] button,
html[lang="zh-Hant"] input,
html[lang="zh-Hant"] select {
  font-family: inherit;
}

html[data-lang="zh"] .lead,
html[data-lang="zh"] .section-lead,
html[data-lang="zh"] .pain-say,
html[data-lang="zh"] .pain-say-customer,
html[data-lang="zh"] .pain-say-argo,
html[data-lang="zh"] .value-band p,
html[data-lang="zh"] .cases-disclosure,
html[data-lang="zh"] .site-footer {
  font-weight: 400;
}

html[data-lang="zh"] .pain-kicker,
html[data-lang="zh"] .pain-num,
html[data-lang="zh"] .svc-kicker,
html[data-lang="zh"] .aside-kicker,
html[data-lang="zh"] .sample-tag,
html[data-lang="zh"] .app-kpi-label,
html[data-lang="zh"] .inv-head,
html[data-lang="zh"] .tag {
  font-weight: 500;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--purple);
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.btn:focus-visible,
.contact-card:focus-visible,
.header-wa:focus-visible {
  outline-color: var(--purple);
}

.visually-hidden,
.svg-sprite {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite {
  width: 0;
  height: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--lime);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 1.15rem;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--paper) 88%, var(--white));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
}

.logo-mark {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: var(--purple);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 0.12rem;
  background: var(--lime);
}

.brand-text {
  white-space: nowrap;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  min-height: 40px;
  min-width: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--purple);
  color: var(--white);
}

.header-wa {
  display: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-panel {
  display: none;
  flex-basis: 100%;
  padding-bottom: 0.85rem;
}

.nav-panel.is-open {
  display: block;
}

.site-nav ul {
  display: grid;
  gap: 0.1rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  text-align: center;
  white-space: normal;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.btn:hover {
  color: var(--white);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 20%, var(--lime));
}

.btn-lime:hover {
  background: color-mix(in srgb, var(--lime) 82%, var(--ink));
  color: var(--ink);
  border-color: var(--ink);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--ink);
  color: var(--white);
}

.btn.header-wa {
  display: none;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.text-link:hover {
  color: var(--purple);
}

.hero {
  border-bottom: 0;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2.4rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lead,
.section-lead {
  margin-top: 1.05rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 1.7rem;
}

.hero-actions .btn-lime {
  width: 100%;
}

.hero-visual {
  display: none;
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.dash {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.dash-lights {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #d9d3c9;
  box-shadow: 0.62rem 0 0 #d9d3c9, 1.24rem 0 0 #d9d3c9;
  margin-right: 1.2rem;
}

.dash-app {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.dash-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.6rem;
  min-width: 0;
}

.dash-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-kpi-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dash-kpi-accent {
  background: var(--lime);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--lime));
}

.dash-kpi-accent .dash-kpi-value {
  color: var(--ink);
}

.dash-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  margin: 0.9rem 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-flow > span:not(.dash-flow-line) {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.18rem 0.42rem;
}

.dash-flow-line {
  width: 0.7rem;
  height: 1px;
  background: var(--line);
  flex: 0 0 auto;
}

.dash-flow-end {
  background: var(--lime) !important;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--lime)) !important;
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 5.6rem;
  padding-top: 0.4rem;
}

.dash-chart span {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--purple) 28%, var(--lilac));
}

.dash-chart span:nth-child(1) { height: 38%; }
.dash-chart span:nth-child(2) { height: 52%; }
.dash-chart span:nth-child(3) { height: 46%; }
.dash-chart span:nth-child(4) { height: 78%; }
.dash-chart span:nth-child(5) { height: 58%; }
.dash-chart span:nth-child(6) { height: 64%; }

.dash-chart .is-accent {
  background: var(--lime);
}

.value-band {
  background: color-mix(in srgb, var(--lime) 28%, var(--paper));
  color: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--lime) 42%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--lime) 42%, var(--line));
}

.value-band p {
  padding: 1.45rem 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  max-width: 46rem;
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: color-mix(in srgb, var(--lilac) 28%, var(--paper));
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--purple);
  overflow-wrap: anywhere;
}

.cases-disclosure {
  margin-top: 0.8rem;
  max-width: 42rem;
  padding: 0.55rem 0.8rem;
  background: var(--orange-soft);
  color: var(--ink);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.services-title {
  margin-top: 3.5rem;
}

.service-grid,
.cases-grid,
.contact-grid,
.about-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.55rem;
  min-width: 0;
}

.pain-talks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  justify-items: stretch;
  align-items: stretch;
  gap: 1.1rem;
  margin-top: 1.55rem;
  min-width: 0;
  width: 100%;
  padding: 0;
  list-style: none;
}

.pain-talk,
.service-card,
.case-card,
.about-aside,
.contact-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pain-talk {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pain-talk-title {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0;
  min-height: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 0.9rem;
  overflow-wrap: anywhere;
}

.pain-talk-title > :last-child {
  min-width: 0;
}

.pain-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--purple);
  white-space: nowrap;
}

.pain-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 0.4rem;
  background: var(--lime);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, var(--lime));
}

.pain-title-icon .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.pain-chat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
}

.pain-side {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  flex: 0 0 auto;
}

.pain-side-customer,
.pain-side-argo {
  margin: 0;
}

.pain-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  min-width: 0;
  height: auto;
}

.pain-side-argo .pain-panel {
  background: color-mix(in srgb, var(--lilac) 70%, var(--white));
  border-color: color-mix(in srgb, var(--purple) 18%, var(--line));
}

.pain-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.pain-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

html[data-lang="zh"] .pain-kicker,
html[lang="zh-Hant"] .pain-kicker {
  letter-spacing: 0.12em;
}

.pain-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.pain-face .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.pain-face-customer {
  background: var(--white);
  color: var(--muted);
}

.pain-face-argo {
  background: var(--purple);
  border-color: var(--purple);
}

.pain-face-argo .logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
}

.pain-face-argo .logo-mark::after {
  top: 0.18rem;
  left: 0.18rem;
  width: 0.38rem;
  height: 0.38rem;
}

.pain-say {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-wrap: anywhere;
  font-size: 0.97rem;
  line-height: 1.5;
  font-weight: 500;
  background: transparent;
}

.pain-say-customer,
.pain-say-argo {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.pain-say-customer::after,
.pain-say-argo::after {
  content: none;
}

.pain-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  min-height: 1.35rem;
  padding: 0.1rem 0;
}

.pain-arrow::before {
  content: "";
  width: 1px;
  height: 0.7rem;
  background: var(--line);
}

.pain-arrow::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  transform: rotate(45deg);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.case-card .card-head {
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.card-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.case-badge {
  display: inline-block;
  margin: 0.28rem 0 0;
  padding: 0.16rem 0.5rem;
  max-width: 100%;
  border-radius: 0.35rem;
  background: var(--lime);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, var(--lime));
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  background: var(--lilac);
  color: var(--purple);
  border: 1px solid color-mix(in srgb, var(--purple) 16%, var(--line));
}

.service-card > .card-icon,
.contact-card .card-icon {
  margin-bottom: 0.8rem;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.service-card h3,
.case-card h3 {
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

.case-card h3 {
  margin: 0;
}

.svc-kicker,
.aside-kicker,
.mockup-meta,
.perm,
.layout-note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
}

html[data-lang="zh"] .svc-kicker,
html[data-lang="zh"] .aside-kicker {
  letter-spacing: 0.1em;
}

.service-card .svc-kicker:nth-of-type(2) {
  margin-top: 0.95rem;
}

.about-grid p + p {
  margin-top: 1rem;
  color: var(--muted);
}

.case-card > p {
  color: var(--muted);
  margin-bottom: 0.95rem;
}

.mockup {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mockup-frame {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0;
  min-width: 0;
  min-height: 17.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.shot-frame {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 760;
  background: color-mix(in srgb, var(--lilac) 40%, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: contain;
  object-position: center;
}

.mockup-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--lilac) 42%, var(--white));
}

.mockup-chrome .dash-lights {
  flex: 0 0 auto;
  margin-right: 0.45rem;
}

.mockup-app {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sample-tag {
  display: inline-block;
  flex: 0 1 auto;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 22%, var(--line));
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.16rem 0.45rem;
  border-radius: 0.35rem;
  overflow-wrap: anywhere;
}

.app-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem 0.7rem;
  min-width: 0;
}

.mockup-meta,
.perm,
.layout-note,
.legend {
  margin: 0;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.78rem;
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.app-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.35rem 0.4rem;
  min-width: 0;
}

.app-kpi-accent {
  background: var(--orange-soft);
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line));
}

.app-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.app-kpi-value {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--purple);
}

.app-kpi-accent .app-kpi-value {
  color: var(--orange);
}

.inv-table {
  display: grid;
  gap: 0.28rem;
}

.inv-head,
.inv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}

.inv-head {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 0.15rem;
}

.inv-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.45rem;
}

.inv-row small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.4rem;
  padding: 0.12rem 0.42rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 1 auto;
}

.tag-orange {
  background: var(--orange);
  color: var(--white);
}

.tag-purple {
  background: var(--purple);
  color: var(--white);
}

.tag-ink {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  font-size: 0.76rem;
}

.swatch {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  display: inline-block;
}

.swatch-purple {
  background: var(--purple);
}

.swatch-orange {
  background: var(--orange);
}

.chart-plot {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.3rem;
  align-items: stretch;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.4rem 0.3rem;
}

.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.1rem 0 1.1rem;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  height: 8.1rem;
  min-width: 0;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.16rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.bar {
  display: block;
  width: 100%;
  max-width: 0.85rem;
  border-radius: 2px 3px 0 0;
}

.bar-outlook {
  background: var(--purple);
}

.bar-onhand {
  background: var(--orange);
}

.pipe-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
}

.pipe-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.45rem;
  min-width: 0;
}

.pipe-steps .is-done {
  border-color: color-mix(in srgb, var(--purple) 28%, var(--line));
  background: color-mix(in srgb, var(--lilac) 55%, var(--white));
}

.pipe-steps .is-active {
  border-color: color-mix(in srgb, var(--orange) 35%, var(--line));
  background: var(--orange-soft);
}

.pipe-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--purple);
}

.pipe-steps small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.file-list {
  display: grid;
  gap: 0.28rem;
}

.file-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.38rem 0.45rem;
  min-width: 0;
}

.file-list small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.file-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.18rem 0.3rem;
  border-radius: 0.3rem;
  background: var(--purple);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
}

.file-ext-csv {
  background: var(--orange);
}

.perm-banner {
  margin: 0;
  padding: 0.38rem 0.5rem;
  background: var(--orange-soft);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--orange) 26%, var(--line));
  border-radius: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.bubble {
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
  margin: 0;
  font-size: 0.86rem;
  border: 1px solid var(--line);
}

.bubble.user {
  background: var(--lilac);
  color: var(--ink);
}

.bubble.bot {
  background: var(--paper);
}

.approval {
  display: inline-block;
  align-self: flex-start;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 0.76rem;
  padding: 0.36rem 0.65rem;
  border-radius: 0.4rem;
}

.qa-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.3rem 0.45rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  min-width: 0;
}

.pack-art {
  width: 100%;
  height: 3.6rem;
}

.pack-top {
  fill: var(--lilac);
}

.pack-left {
  fill: var(--purple);
}

.pack-right {
  fill: var(--purple-deep);
}

.pack-tape {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
}

.pack-review .pack-left {
  fill: var(--orange);
}

.pack-review .pack-right {
  fill: color-mix(in srgb, var(--orange) 78%, var(--ink));
}

.pack-review .pack-top {
  fill: var(--orange-soft);
}

.pack-damage .pack-left,
.pack-damage .pack-right {
  fill: var(--muted);
}

.pack-damage .pack-top {
  fill: #e4e0d8;
}

.pack-dent {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
}

.plano-window {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem;
  background: color-mix(in srgb, var(--lilac) 70%, var(--white));
  border: 1px solid color-mix(in srgb, var(--purple) 18%, var(--line));
  border-radius: 0.4rem;
}

.plano {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  min-width: 0;
}

.plano-bay {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.35rem;
  min-width: 0;
}

.fixture-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.28rem;
}

.shelf {
  display: flex;
  gap: 0.16rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  padding: 0.18rem;
  margin-top: 0.2rem;
  min-width: 0;
}

.facing {
  height: 0.95rem;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
}

.f-wide {
  flex: 1.6 1 0;
}

.f-p {
  background: color-mix(in srgb, var(--purple) 58%, var(--white));
}

.f-o {
  background: color-mix(in srgb, var(--orange) 62%, var(--white));
}

.plano-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.zone {
  border-radius: 0.4rem;
  padding: 0.42rem 0.25rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.zone-hot {
  background: var(--orange-soft);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line));
}

.zone-mid {
  background: color-mix(in srgb, var(--purple) 16%, var(--white));
  color: var(--ink);
}

.about-aside {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-aside ul {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.aside-kicker {
  color: var(--purple);
}

.contact {
  background: var(--paper);
}

.contact-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--lilac) 45%, var(--white));
}

.contact-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--lime);
}

.contact-primary .svc-kicker,
.contact-primary strong {
  color: var(--white);
}

.contact-primary .card-icon {
  background: color-mix(in srgb, var(--white) 16%, var(--purple));
  color: var(--lime);
  border-color: color-mix(in srgb, var(--white) 18%, var(--purple));
}

.contact-primary:hover {
  background: var(--purple-deep);
  color: var(--white);
}

.contact-card strong {
  display: block;
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.6rem 0 2.5rem;
  border-top: 2px solid var(--purple);
  font-weight: 500;
}

.site-footer p {
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-primary:focus-visible {
  outline-color: var(--lime);
}

.noscript {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

section[id],
#main {
  scroll-margin-top: 5.25rem;
}

@media (min-width: 736px) {
  .header-wa,
  .btn.header-wa {
    display: inline-flex;
  }

  .service-grid,
  .cases-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pain-talk {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    padding: 1.3rem 1.25rem 1.3rem;
  }

  .pain-talks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .pain-talk-title {
    min-height: 3.2rem;
  }

  .pain-chat {
    display: grid;
    flex: 1 1 auto;
    flex-direction: column;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.25rem;
    min-height: 0;
  }

  .pain-side,
  .pain-panel {
    height: 100%;
    min-height: 0;
  }

  .hero-visual {
    display: block;
  }

  .hero-actions .btn-lime {
    width: auto;
  }

  .pipeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-panel,
  .nav-panel.is-open {
    display: block;
    flex: 1 1 auto;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 0.15rem 0.85rem;
  }

  .header-end {
    order: 3;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 1.5rem;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.75rem;
  }

  .hero-grid {
    padding: 4rem 0 3rem;
  }

  .pain-talks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .pain-talk {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    padding: 1.35rem 1.4rem 1.35rem;
  }

  .pain-talk-title {
    min-height: 3.2rem;
  }

  .pain-chat {
    display: grid;
    flex: 1 1 auto;
    flex-direction: column;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.3rem;
    min-height: 0;
  }

  .pain-side,
  .pain-panel {
    height: 100%;
    min-height: 0;
  }

  .service-grid,
  .cases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }

  .section {
    padding: 5rem 0;
  }
}

@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;
  }
}
