/* =========================================================
   SabaiiT — บริษัท สะบาย ไอที จำกัด
   Shared stylesheet (all pages)
   ========================================================= */

:root {
  --accent: #E3262F;
  --accent-2: #FF7A59;
  --accent-dark: #B91C24;
  --accent-soft: #FFF1F2;
  --accent-line: #FBD5D8;
  --ink: #111827;
  --text: #1F2937;
  --text-2: #374151;
  --muted: #6B7280;
  --line: #EEF0F3;
  --line-2: #E6ECF5;
  --bg: #FFFFFF;
  --bg-soft: #F8F9FB;
  --navy: #0F1B33;
  --blue: #2563EB;
  --blue-soft: #EFF6FF;
  --green: #16A34A;
  --green-dark: #15803D;
  --green-soft: #ECFDF3;
  --radius: 20px;
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.05);
  --shadow: 0 14px 34px rgba(15, 27, 51, 0.10);
  --container: 1240px;
  --font-head: 'Prompt', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.3; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(227, 38, 47, 0.45); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(227, 38, 47, 0.28); }
.btn--primary:hover { color: #fff; background: #D11F28; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--text); border-color: #E5E7EB; }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent-line); }
.btn--soft { background: #F3F4F6; color: var(--text-2); font-weight: 500; }
.btn--soft:hover { background: #E9EBEF; color: var(--text); }
.btn--white { background: #fff; color: var(--accent); font-weight: 700; }
.btn--white:hover { color: var(--accent-dark); }
.btn--outline-white { border: 1.5px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn--outline-white:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn--lg { min-height: 54px; padding: 0 28px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600;
}
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag--oil { background: #FFF1E7; color: #9A3412; }
.tag--sugar { background: var(--green-soft); color: #166534; }
.tag--member { background: #FDF2F8; color: #9D174D; }
.tag--stock { background: #F5F3FF; color: #5B21B6; }
.tag--transport { background: var(--blue-soft); color: #1E40AF; }
.tag--more { background: #F3F4F6; color: var(--text-2); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.section-head--left { text-align: left; margin-left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #F1F2F4;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 15px; font-weight: 500; color: #4B5563; padding: 6px 0; position: relative; }
.nav__links a:hover { color: var(--accent); }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid #E5E7EB; background: #fff; color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

@media (max-width: 1020px) {
  .nav__links, .nav__actions .btn--soft { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 auto 0; z-index: 49;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 27, 51, 0.12);
    padding: 12px 24px 24px; max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li a { display: flex; align-items: center; min-height: 52px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu li a[aria-current="page"] { color: var(--accent); }
  .mobile-menu .btn { width: 100%; margin-top: 16px; }
}
@media (max-width: 480px) {
  .brand img { height: 46px; }
  .nav__actions .btn--primary { padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 560px at 78% 40%, #E6EEFB 0%, rgba(230, 238, 251, 0) 70%),
    radial-gradient(520px 380px at 0% 100%, #FFF1F0 0%, rgba(255, 241, 240, 0) 70%),
    linear-gradient(180deg, #F7F9FD 0%, #FFFFFF 100%);
}
.hero__dots {
  position: absolute; right: 0; top: 0; width: 60%; height: 100%; pointer-events: none;
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 1.2px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 60% 45%, #000 0%, transparent 100%);
}
.hero__swoosh { position: absolute; right: 0; top: 0; width: 46%; height: 70%; pointer-events: none; }
.cube {
  position: absolute; pointer-events: none; border-radius: 10px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(191, 213, 247, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.15);
}
.cube--1 { left: 47%; top: 70px; width: 46px; height: 46px; transform: rotate(14deg); }
.cube--2 { left: 44%; top: 150px; width: 26px; height: 26px; border-radius: 7px; transform: rotate(-10deg); }
.cube--3 { right: 3%; top: 58%; width: 34px; height: 34px; border-radius: 8px; transform: rotate(22deg); }

.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 96px; }
.hero__copy { flex: 1 1 480px; min-width: 0; }
.hero__visual { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }

.badge-new {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; background: #fff; border: 1px solid var(--accent-line); border-radius: 999px;
  font-size: 14px; color: var(--text-2); box-shadow: 0 4px 14px rgba(227, 38, 47, 0.08);
}
.badge-new span { padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }

.hero h1 { margin-top: 26px; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.18; letter-spacing: -1px; }
.hero h1 .grad {
  font-size: 1.22em;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; font-size: 19px; color: #4B5563; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.hero__tags > span:first-child { font-size: 14px; color: var(--muted); margin-right: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.stat { background: #fff; border: 1px solid #F1F2F4; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; white-space: nowrap; font-family: var(--font-head); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; color: var(--accent); }
.stat span { font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  .hero__inner { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat strong { font-size: 24px; }
  .cube--1, .cube--2 { display: none; }
}

/* ---------- Ecosystem diagram ---------- */
.eco { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; margin-bottom: 7%; container-type: inline-size; }
.eco__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow { animation: ecoflow 1.4s linear infinite; }
@keyframes ecoflow { to { stroke-dashoffset: -5.6; } }
.eco__pulse { position: absolute; inset: 35%; border-radius: 50%; border: 2px solid var(--accent); animation: ecopulse 2.6s ease-out infinite; }
@keyframes ecopulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow, .eco__pulse { animation: none; } html { scroll-behavior: auto; } }

.eco__hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 28%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--accent-2) 0%, var(--accent) 55%, var(--accent-dark) 100%);
  box-shadow: 0 2.4cqw 6cqw rgba(227, 38, 47, 0.35), inset 0 0 0 0.8cqw rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-size: 6.4cqw; font-weight: 700; letter-spacing: 0.02em;
}
.eco__mod {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 1.2cqw;
  padding: 1.3cqw 2.2cqw 1.3cqw 1.3cqw; background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: 0 1.2cqw 3cqw rgba(15, 27, 51, 0.08);
  font-size: 2.4cqw; font-weight: 600; color: var(--text); white-space: nowrap; line-height: 1.4;
}
.eco__mod i { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: 0.5cqw solid; flex-shrink: 0; }
.eco__node {
  position: absolute; transform: translate(-50%, -50%);
  width: 10cqw; height: 10cqw; border-radius: 2.8cqw; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1.6cqw 4cqw rgba(227, 38, 47, 0.18);
}
.eco__node svg { width: 5.2cqw; height: 5.2cqw; }
.eco__node--blue { box-shadow: 0 1.6cqw 4cqw rgba(37, 99, 235, 0.18); }
.eco__label { position: absolute; transform: translateX(-50%); font-size: 2.3cqw; line-height: 1.3; text-align: center; white-space: nowrap; }
.eco__label--side { transform: translateY(-50%); text-align: left; }
.eco__label b { display: block; color: var(--text); }
.eco__label span { color: var(--muted); }
.eco__map {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 32cqw; background: #fff; border-radius: 2.6cqw; padding: 1.2cqw;
  box-shadow: 0 1.6cqw 4cqw rgba(22, 163, 74, 0.2);
}
.eco__map svg { display: block; width: 100%; height: auto; border-radius: 1.6cqw; }
.eco__map div { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; padding: 1cqw 0.6cqw 0.2cqw; font-size: 2.2cqw; line-height: 1.25; white-space: nowrap; }
.eco__map b { color: var(--text); }
.eco__map span { color: var(--green-dark); }
@container (max-width: 480px) {
  .eco__label { font-size: 3.1cqw; }
  .eco__label span { display: none; }
  .eco__mod { font-size: 2.6cqw; padding: 1.2cqw 1.6cqw 1.2cqw 1.1cqw; gap: 1cqw; }
  .eco__mod i { width: 3cqw; height: 3cqw; }
  .eco__map div { font-size: 2.7cqw; }
  .eco__map div span { display: none; }
  .eco__node { width: 11cqw; height: 11cqw; }
}

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.steps li.step {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 6px 16px rgba(15, 27, 51, 0.06);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.steps li.step b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.steps li.arrow { display: flex; color: #94A3B8; }
.steps li.arrow svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .steps li.arrow { display: none; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--industries { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04); color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); color: var(--text); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { font-size: 15px; color: var(--muted); }
.card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.card--add { justify-content: center; align-items: center; text-align: center; gap: 10px; border: 2px dashed #F5B5BA; background: #FFF7F7; box-shadow: none; }
.card--add .plus { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.card--add .plus svg { width: 26px; height: 26px; }
.chip-soon { padding: 4px 10px; border-radius: 999px; background: #F3F4F6; color: #4B5563; font-size: 12px; font-weight: 600; white-space: nowrap; }

.service { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 20px rgba(227, 38, 47, 0.25);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { margin-top: 20px; font-size: 19px; font-weight: 600; }
.service p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Split / modular platform ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { min-width: 0; }
.split__text { flex: 1 1 400px; }
.split__media { flex: 1 1 540px; }
.split h2 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 40px); }
.split h2 em { font-style: normal; color: var(--accent); }
.split__lead { margin-top: 14px; font-size: 17px; color: var(--muted); }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--text-2); }
.checks li::before {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.layers { background: linear-gradient(160deg, #FFF5F5 0%, #FFFFFF 60%); border: 1px solid #FBE1E3; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.layer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.layer__head h3 { font-size: 16px; font-weight: 600; }
.layer__head span { font-size: 13px; color: var(--muted); }
.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mods span { padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--text); }
.mods--blue span { background: var(--blue-soft); color: #1D4ED8; border-color: #DBEAFE; }
.mods--core span { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 560px) { .layers { padding: 22px; } .split { gap: 40px; } }

/* ---------- Mobile app strip ---------- */
.app-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  background: linear-gradient(135deg, #0F1B33 0%, #1B2B4D 100%); color: #fff;
  border-radius: 32px; padding: 56px; overflow: hidden; position: relative;
}
.app-strip::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 38, 47, 0.45), rgba(227, 38, 47, 0) 70%); pointer-events: none; }
.app-strip__text { flex: 1 1 380px; min-width: 0; position: relative; z-index: 1; }
.app-strip h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-top: 14px; }
.app-strip p { margin-top: 12px; color: #C7D2E6; font-size: 17px; }
.app-strip .eyebrow { background: rgba(255, 255, 255, 0.1); color: #FFD1D4; }
.app-strip__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.app-strip__phones { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; gap: 16px; position: relative; z-index: 1; }
.app-strip__phones img { width: 31%; max-width: 170px; border-radius: 22px; border: 5px solid #fff; box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35); }
.app-strip__phones img:nth-child(2) { transform: translateY(-22px); }
.play-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 22px; border-radius: 14px; background: #fff; color: var(--navy); font-weight: 600; }
.play-badge:hover { color: var(--accent); }
.play-badge svg { width: 24px; height: 24px; }
.play-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; }
@media (max-width: 560px) { .app-strip { padding: 36px 24px; border-radius: 24px; } }

/* ---------- Clients ---------- */
.clients { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
.clients > * { flex: 0 1 calc(25% - 12px); min-width: 160px; }
@media (max-width: 420px) { .clients > * { flex: 1 1 calc(50% - 8px); } }
.client {
  min-height: 132px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff;
}
.client img { height: 60px; width: auto; max-width: 140px; object-fit: contain; }
.client b { font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.4; }
.client span { font-size: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  border-radius: 32px; padding: 56px; color: #fff;
  background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 70%), linear-gradient(120deg, var(--accent) 0%, #F0444C 55%, var(--accent-2) 100%);
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  box-shadow: 0 24px 50px rgba(227, 38, 47, 0.25);
}
.cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.cta p { margin-top: 10px; font-size: 17px; color: #FFF1F2; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .cta { padding: 36px 24px; border-radius: 24px; } .cta__btns .btn { flex: 1 1 100%; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 64px 0 56px;
  background: radial-gradient(700px 420px at 85% 20%, #E6EEFB 0%, rgba(230, 238, 251, 0) 70%), linear-gradient(180deg, #F7F9FD 0%, #FFFFFF 100%);
  border-bottom: 1px solid #F1F2F4;
}
.page-hero .hero__dots { width: 50%; }
.page-hero__inner { position: relative; }
.page-hero__inner > p { max-width: 820px; }
.page-hero h1 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 50px); }
.page-hero p { margin-top: 14px; font-size: 18px; color: #4B5563; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- SIMS Web modules page ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 320px; max-width: 420px; }
.search input {
  width: 100%; min-height: 48px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid #E5E7EB;
  font-family: var(--font-body); font-size: 15px; color: var(--text); background: #fff;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(227, 38, 47, 0.12); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 36px; scrollbar-width: thin; }
.cat-nav a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.cat-nav a:hover { border-color: var(--accent-line); color: var(--accent); }

.cat { scroll-margin-top: 96px; margin-bottom: 56px; }
.cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cat__head .card__icon { width: 48px; height: 48px; border-radius: 14px; }
.cat__head .card__icon svg { width: 24px; height: 24px; }
.cat__head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.cat__head p { font-size: 14px; color: var(--muted); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .mod-grid { grid-template-columns: 1fr; } }
.mod {
  display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; transition: border-color .2s ease, box-shadow .2s ease;
}
.mod:hover { border-color: #E2E6EE; box-shadow: var(--shadow-sm); }
.mod__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mod h3 { font-size: 17px; font-weight: 600; font-family: var(--font-head); }
.mod h3 small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.mod p { font-size: 14.5px; color: #4B5563; }
.mod__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--muted); }
.mod__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.mod__foot a svg { width: 16px; height: 16px; }
.status { font-style: normal; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status--ready { background: var(--green-soft); color: var(--green-dark); }
.status--dev { background: #FFF7E6; color: #9A5B00; }
.status--plan { background: #F3F4F6; color: #4B5563; }
.empty { display: none; text-align: center; padding: 48px 16px; color: var(--muted); }
.is-hidden { display: none !important; }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--blue-soft); color: #1E3A8A; font-size: 15px; }
.note svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Gallery / screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.shot figcaption { padding: 12px 14px; font-size: 14px; color: var(--text-2); }

.phones { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.phone { margin: 0; flex: 0 0 168px; scroll-snap-align: start; }
.phone button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 22px; }
.phone img { width: 100%; aspect-ratio: 870 / 1882; object-fit: cover; border-radius: 22px; border: 5px solid var(--navy); box-shadow: 0 12px 24px rgba(15, 27, 51, 0.16); background: #E5E7EB; }
.phone figcaption { margin-top: 10px; font-size: 13px; color: var(--text-2); text-align: center; line-height: 1.45; }

.app-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.app-sec:first-of-type { border-top: 0; }
.app-sec__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.app-sec h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 12px; }
.app-sec__lead { margin-top: 10px; color: #4B5563; }
.app-sec ul.checks li { font-size: 15px; }
.app-sec ul.checks li::before { width: 22px; height: 22px; background-size: 12px; }
.app-sec ul.checks { gap: 10px; margin-top: 20px; }
@media (max-width: 900px) { .app-sec { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9, 14, 28, 0.88); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox figcaption { color: #E5E7EB; font-size: 15px; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__close svg { width: 24px; height: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); }
a.contact-card:hover { border-color: var(--accent-line); color: var(--text); box-shadow: var(--shadow); }
.contact-card .card__icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 8px; }
.contact-card small { font-size: 14px; color: var(--muted); }
.contact-card strong { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--ink); word-break: break-word; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 16px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 22px; margin: 8px 0 0; }
.prose li { margin: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-top: 56px; padding-bottom: 28px; }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.site-footer h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); }
.footer__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #4B5563; }
.footer__links a { color: #4B5563; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- News & documents ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
a.news-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); color: var(--text); }
.news-card h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.news-card p { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.news-type { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.news-type--update { background: var(--blue-soft); color: #1D4ED8; }
.news-type--news { background: var(--accent-soft); color: var(--accent); }
.news-tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #F3F4F6; color: var(--text-2); }

.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #F3F4F6; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs [role="tab"] { flex-shrink: 0; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: 0 4px 12px rgba(15, 27, 51, 0.08); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 8px; }
.filters select { min-height: 48px; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid #E5E7EB; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; -webkit-appearance: none; appearance: none; font-family: var(--font-body); font-size: 15px; color: var(--text); }
.filters .search { max-width: 360px; }
.filters__count { margin-left: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .filters select { flex: 1 1 calc(50% - 5px); } .filters .search { max-width: none; flex-basis: 100%; } .filters__count { margin-left: 0; } }

.timeline { position: relative; margin-top: 16px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-line), var(--line)); }
.tl-year { font-size: 22px; margin: 32px 0 12px -28px; padding-left: 28px; color: var(--ink); }
.tl-year:first-child { margin-top: 8px; }
.tl-item { position: relative; margin-bottom: 14px; scroll-margin-top: 96px; }
.tl-dot { position: absolute; left: -27px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.tl-card[open] { box-shadow: var(--shadow-sm); }
.tl-card summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; padding-right: 56px; }
.tl-card summary::-webkit-details-marker { display: none; }
.tl-card summary::after { content: ""; position: absolute; right: 22px; top: 24px; width: 22px; height: 22px; border-radius: 50%; background: #F3F4F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.tl-card[open] summary::after { transform: rotate(180deg); }
.tl-card h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.tl-sum { color: var(--muted); font-size: 15px; }
.tl-toggle { font-size: 13px; color: var(--muted); }
.tl-body { padding: 0 22px 20px; border-top: 1px solid var(--line); }
.tl-body h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); margin: 16px 0 4px; }
.tl-body ul { margin: 12px 0 0; padding-left: 20px; }
.tl-body li { margin: 5px 0; font-size: 15px; color: var(--text-2); }
.tl-body li::marker { color: var(--accent); }
.tl-docs { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; }
.tl-docs a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.tl-docs svg { width: 16px; height: 16px; }

.doc-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.doc-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.doc-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.doc-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td b { display: block; font-weight: 600; color: var(--ink); }
.doc-table td small { font-size: 13px; color: var(--muted); }
.doc-dl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.doc-dl:hover { background: #FFE4E6; }
.doc-dl svg { width: 16px; height: 16px; }

/* ---------- SIMS Mobile capability grid ---------- */
.cap-box { margin: 28px 0 8px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-soft); }
.cap-box h2 { font-size: clamp(20px, 2.2vw, 26px); }
.cap-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.cap-grid li { padding-left: 14px; border-left: 3px solid var(--accent); }
.cap-grid strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.cap-grid span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

.measure-modes { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: #4B5563; }
.measure-modes li, .app-sec ul.checks .measure-modes li { display: list-item; font-size: 14px; color: #4B5563; }
.measure-modes li::before { display: none !important; }
