/* HAS Software — corporate inventory-app site. Light, orange + graphite. */
:root {
  --orange: #c2410c;
  --orange-dark: #9a3412;
  --orange-soft: #ffedd5;
  --orange-tint: #fff7ed;
  --ink: #1c1917;
  --ink-2: #292524;
  --muted: #57534e;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --card: #ffffff;
  --ok: #15803d;
  --warn: #b45309;
  --pad: max(20px, calc((100% - 1180px) / 2));
  --sec: clamp(72px, 9vw, 120px);
  --gap: clamp(16px, 2vw, 24px);
  --r: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --h1: clamp(2.35rem, 1.4rem + 4.2vw, 4.25rem);
  --h2: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  --h3: 1.15rem;
  --lead: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --small: 0.95rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand { font-family: "Poppins", system-ui, sans-serif; color: var(--ink); letter-spacing: -0.015em; }
img, svg { display: block; max-width: 100%; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
.skip:hover { color: #fff; }
.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--sec); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 20px 9px 16px; border-radius: 12px; background: #0c0a09; color: #fff; text-decoration: none; transition: background-color 0.2s; }
.store:hover { background: #292524; color: #fff; }
.store svg { width: 26px; height: 28px; flex: none; }
.store span { display: grid; line-height: 1.15; text-align: left; }
.store small { font-size: 0.72rem; opacity: 0.9; }
.store b { font-family: "Poppins", sans-serif; font-size: 1.15rem; font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding-inline: var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--orange-tint); color: var(--orange-dark); }
.nav .btn { margin-left: 10px; padding: 10px 18px; min-height: 44px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; background: var(--orange); }
.nav .btn-primary:hover { background: var(--orange-dark); }
.menu-btn { display: none; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font: 600 0.95rem "Poppins", sans-serif; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { text-align: center; padding: clamp(56px, 8vw, 104px) var(--pad) 0; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero h1 { font-size: var(--h1); line-height: 1.06; font-weight: 700; max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { margin: 22px auto 0; max-width: 58ch; font-size: var(--lead); color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero .note { margin-top: 18px; font-size: var(--small); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.hero .note span + span::before { content: "·"; margin: 0 10px; color: var(--orange); }

/* Product showcase */
.showcase { position: relative; max-width: 1060px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 0 0; }
.board { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -2px 0 rgba(0,0,0,0.01), 0 30px 60px -40px rgba(28, 25, 23, 0.45); overflow: hidden; text-align: left; }
.board .pane { padding: 22px 24px 26px; }
.board .pane + .pane { border-left: 1px solid var(--line); background: #fcfcfb; }
.pane .ph, .panel .ph { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pane .ph small { font: 600 0.8rem "Open Sans", sans-serif; color: var(--muted); }
.search { margin-top: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 0.9rem; background: #fff; }
.search svg { width: 18px; height: 18px; flex: none; }
.rows { list-style: none; padding: 0; margin-top: 10px; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.95rem; }
.rows .meta { grid-column: 1; font-size: 0.82rem; color: var(--muted); }
.rows .qty { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 1.05rem "Poppins", sans-serif; }
.rows .low .qty { color: var(--warn); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--orange-tint); color: var(--orange-dark); font-weight: 600; font-size: 0.76rem; margin-right: 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.stat dt { font-size: 0.8rem; color: var(--muted); }
.stat dd { font: 700 1.3rem "Poppins", sans-serif; margin-top: 2px; }
.stat.alert { background: #fffbeb; border-color: #fde68a; }
.stat.alert dd { color: var(--warn); }
.moves { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.moves li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.moves .in { color: var(--ok); font-weight: 700; }
.moves .out { color: var(--orange-dark); font-weight: 700; }

/* Facts strip */
.strip { background: var(--card); border-block: 1px solid var(--line); }
.strip ul { list-style: none; padding: 26px var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.strip li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 0.97rem; }
.strip svg { width: 26px; height: 26px; color: var(--orange); flex: none; }

/* Section heads */
.head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; }
.head h2, .h2 { font-size: var(--h2); line-height: 1.15; font-weight: 700; text-wrap: balance; }
.head p { margin-top: 14px; font-size: var(--lead); color: var(--muted); }

/* Feature rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feat + .feat { margin-top: clamp(64px, 8vw, 104px); }
.feat.flip .copy { order: 2; }
.feat .copy h3 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.2; }
.feat .copy p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 2px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 24px 50px -40px rgba(28, 25, 23, 0.5); }
.panel .ph span { color: var(--muted); font: 600 0.82rem "Open Sans", sans-serif; }
.dialog { margin-top: 16px; display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg span { text-align: center; padding: 10px; font-weight: 600; font-size: 0.92rem; }
.seg .on { background: var(--orange); color: #fff; }
.field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.field small { display: block; font-size: 0.76rem; color: var(--muted); }
.field b { font-family: "Poppins", sans-serif; font-weight: 600; }
.field.err { border-color: #dc2626; }
.field.err + .msg { color: #b91c1c; font-size: 0.82rem; margin-top: -6px; }

/* More features list */
.more { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.more div { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more div:nth-child(3n) { border-right: 0; }
.more div:nth-last-child(-n + 3) { border-bottom: 0; }
.more h3 { font-size: var(--h3); display: flex; gap: 10px; align-items: center; }
.more h3 svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.more p { margin-top: 8px; color: var(--muted); font-size: var(--small); }

/* Company split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.split figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.split .copy p { margin-top: 16px; color: var(--muted); font-size: var(--lead); }
.facts { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { font-weight: 600; }

/* Privacy band */
.band { background: var(--ink); color: #fff; }
.band .inner { padding: var(--sec) var(--pad); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.band h2 { color: #fff; }
.band .copy p { margin-top: 16px; color: rgba(255, 255, 255, 0.85); font-size: var(--lead); }
.band a { color: #fdba74; }
.band a:hover { color: #fff; }
.promises { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.14); border-radius: 18px; overflow: hidden; }
.promises li { background: var(--ink-2); padding: 22px; }
.promises b { display: block; font-family: "Poppins", sans-serif; font-size: 1.05rem; color: #fff; }
.promises span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.8); font-size: 0.93rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 1.08rem "Poppins", sans-serif; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 "Poppins", sans-serif; color: var(--orange); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 70ch; }

/* CTA */
.cta .box { background: var(--orange-tint); border: 1px solid #fed7aa; border-radius: 24px; padding: clamp(40px, 6vw, 72px) 24px; text-align: center; }
.cta p { margin: 14px auto 0; max-width: 52ch; color: var(--muted); font-size: var(--lead); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* Footer */
.foot { background: #0c0a09; color: rgba(255, 255, 255, 0.78); font-size: var(--small); margin-top: var(--sec); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 64px var(--pad) 40px; }
.foot .brand { color: #fff; }
.foot .brand:hover { color: #fff; }
.foot address { font-style: normal; margin-top: 18px; line-height: 1.7; white-space: pre-line; }
.foot .fh { font: 600 0.95rem "Poppins", sans-serif; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #fdba74; text-decoration: underline; }
.foot .legal { padding: 22px var(--pad) 34px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.foot .legal a { text-decoration: underline; color: rgba(255, 255, 255, 0.88); }

/* Inner pages */
.page-head { background: var(--orange-tint); border-bottom: 1px solid #fed7aa; padding: clamp(44px, 6vw, 80px) var(--pad); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.1; max-width: 22ch; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: var(--lead); max-width: 62ch; }
.page-head .meta { font-size: 0.9rem; margin-top: 10px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: clamp(40px, 5vw, 72px) var(--pad) 0; }
.doc > * { min-width: 0; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.93rem; }
.toc .fh { font: 600 0.85rem "Poppins", sans-serif; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); }
.toc a:hover { border-left-color: var(--orange); color: var(--orange-dark); }
.body { max-width: 760px; }
.body h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 52px 0 12px; scroll-margin-top: 96px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font-size: var(--h3); margin: 26px 0 6px; }
.body p, .body ul, .body ol, .body table { margin-top: 12px; }
.body ul, .body ol { padding-left: 1.25em; }
.body li { margin-top: 6px; }
.body li::marker { color: var(--orange); }
.body table { width: 100%; border-collapse: collapse; font-size: var(--small); background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.body th, .body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.body thead th { background: #f5f5f4; font-family: "Poppins", sans-serif; font-weight: 600; }
.body code { font: inherit; font-weight: 600; overflow-wrap: anywhere; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-top: 18px; }
.card > *:first-child { margin-top: 0; }
.addr { white-space: pre-line; font-style: normal; font-weight: 600; }

/* Motion */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .board, .feat, .split, .band .inner { grid-template-columns: minmax(0, 1fr); }
  .board .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .feat.flip .copy { order: 0; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .more { grid-template-columns: 1fr 1fr; }
  .more div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .more div:nth-child(2n) { border-right: 0 !important; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--pad) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 8px 0 0; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions > * { justify-content: center; }
}
@media (max-width: 640px) {
  .strip ul, .more, .promises, .facts, .foot .cols, .stats { grid-template-columns: minmax(0, 1fr); }
  .more div { border-right: 0 !important; }
  .more div:last-child { border-bottom: 0 !important; }
  .body table { display: block; overflow-x: auto; }
}
