/* ==========================================================================
   SHEHEN — Clearing • Forwarding • Logistics
   Design system. Mobile-first: base = phones, then 640 / 900 / 1200 / 1600.
   ========================================================================== */

:root {
  --navy-950: #0a1a3a;
  --navy-900: #112955;
  --navy-800: #183566;
  --navy-700: #234476;
  --navy-600: #2f5590;
  --ink: #0c1a3a;
  --text: #2a3446;
  --muted: #5d6879;
  --faint: #8a94a6;
  --line: #e2e6ed;
  --line-strong: #cfd5df;
  --bg: #f5f6f9;
  --white: #ffffff;

  --accent: #c6a058;
  --accent-600: #a9843e;
  --accent-400: #dcbb78;
  --accent-100: #f7efdc;
  --accent-text: #8a6a26;

  --blue: #2563eb;
  --blue-100: #e3ecfd;
  --amber: #b7791f;
  --amber-100: #fbf0d9;
  --green: #12805c;
  --green-100: #dff3ea;
  --slate-100: #e9ecf2;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(17, 41, 85, .06), 0 1px 1px rgba(17, 41, 85, .04);
  --shadow-md: 0 8px 24px -8px rgba(17, 41, 85, .16), 0 2px 6px rgba(17, 41, 85, .06);
  --shadow-lg: 0 30px 60px -24px rgba(10, 26, 58, .45), 0 8px 20px -8px rgba(10, 26, 58, .2);

  --gutter: 20px;
  --header-h: 64px;
  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); line-height: 1.06; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.display { font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 7.4vw, 4rem); }
.h2 { font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 5.6vw, 3rem); }
.h3 { font-weight: 700; font-size: 1.2rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: var(--r-md); border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; white-space: nowrap;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .18s; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--navy-950); box-shadow: 0 6px 16px -6px rgba(198, 160, 88, .7); }
.btn--primary:hover { background: var(--accent-400); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .8rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .14em; color: var(--ink); line-height: 1; }
.logo__sub { display: none; }
.site-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn--track { min-height: 40px; padding: 0 14px; font-size: .76rem; }
.header-actions .portal-link, .header-actions .quote-btn { display: none; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--navy-900); color: #fff;
  padding: 24px var(--gutter) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
.nav-open { overflow: hidden; }
.mobile-menu a.m-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.mobile-menu a.m-link[aria-current="page"] { color: var(--accent-400); }
.mobile-menu .m-actions { display: grid; gap: 12px; margin-top: 28px; }
.mobile-menu .m-meta { margin-top: 28px; color: rgba(255, 255, 255, .6); font-size: .9rem; display: grid; gap: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg svg, .hero__bg .hero__photo { width: 100%; height: 100%; object-fit: cover; }
.hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 26, 58, .78) 0%, rgba(10, 26, 58, .5) 50%, rgba(10, 26, 58, .92) 100%); }
.hero__inner { display: grid; gap: 28px; padding-block: 40px 96px; }
.hero__title { color: #fff; font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 10vw, 4.4rem); line-height: .98; letter-spacing: -.02em; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--accent-400); }
.hero__sub { margin-top: 18px; color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 52ch; }
.hero__cta { display: grid; gap: 12px; margin-top: 26px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: .82rem; color: rgba(255, 255, 255, .72); }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: var(--accent-400); width: 1.1em; }

.hero-route path.route { stroke-dasharray: 6 10; animation: dash 28s linear infinite; }
.hero-route .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
@keyframes dash { to { stroke-dashoffset: -1000; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

/* ---------- Tracking widget ---------- */
.track-card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6); }
.track-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.track-card__head .badge-ic { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--accent-100); color: var(--accent-text); display: grid; place-items: center; }
.track-card h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.track-form { display: grid; gap: 10px; }
.track-form input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; font-size: 1rem; }
.track-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.track-hint { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.track-hint button { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.track-demo-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--slate-100); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.track-result { margin-top: 18px; }
.track-result:empty { display: none; }

/* ---------- Shipment result ---------- */
.trk { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; text-align: left; }
.trk__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.trk__ref { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); word-break: break-all; }
.trk__label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--transit { background: var(--blue-100); color: var(--blue); }
.pill--customs { background: var(--amber-100); color: var(--amber); }
.pill--released { background: var(--green-100); color: var(--green); }
.pill--delivered { background: var(--slate-100); color: var(--navy-700); }
.pill--pending { background: var(--accent-100); color: var(--accent-text); }
.trk__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.trk__meta > div { background: #fff; padding: 12px 18px; min-width: 0; }
.trk__meta dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.trk__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.trk__body { padding: 18px; }
.trk__note { padding: 12px 18px; font-size: .78rem; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }

.timeline { position: relative; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline li.is-done::before { background: var(--green); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-strong); color: #fff; z-index: 1; }
.tl-dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.is-done .tl-dot { background: var(--green); border-color: var(--green); }
.is-current .tl-dot { border-color: var(--blue); background: #fff; }
.is-current .tl-dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { transform: scale(.6); opacity: .6; } }
.tl-title { font-weight: 600; color: var(--ink); line-height: 1.3; padding-top: 3px; }
.tl-time { font-size: .8rem; color: var(--muted); }
.is-todo .tl-title { color: var(--faint); font-weight: 500; }
.is-current .tl-title { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section--bg { background: var(--bg); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .7); }
.section__head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.page-hero { background: var(--navy-900); color: #fff; padding-block: 48px 56px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 400px at 85% -10%, rgba(198, 160, 88, .28), transparent 60%), linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 80%); }
.page-hero h1 { color: #fff; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.8rem); margin-top: 14px; }
.page-hero p { margin-top: 14px; color: rgba(255, 255, 255, .75); max-width: 58ch; font-size: 1.05rem; }
.crumbs { display: flex; gap: 8px; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.crumbs a:hover { color: #fff; }

/* ---------- Quick actions ---------- */
.quick { margin-top: -64px; position: relative; z-index: 5; }
.quick__grid { display: grid; gap: 12px; }
.qcard { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s, border-color .2s; }
.qcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.qcard__ic { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--navy-900); color: #fff; display: grid; place-items: center; transition: background .2s; }
.qcard:hover .qcard__ic { background: var(--accent); color: var(--navy-950); }
.qcard__ic .icon { width: 26px; height: 26px; }
.qcard h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.qcard p { font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.qcard__go { color: var(--accent-text); }

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 16px; }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc__visual { position: relative; aspect-ratio: 16 / 9; background: var(--navy-800); overflow: hidden; display: grid; place-items: center; color: #fff; }
.svc__visual svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc__visual .icon-wrap { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; backdrop-filter: blur(2px); }
.svc__visual .icon-wrap .icon { width: 32px; height: 32px; }
.svc__num { position: absolute; left: 14px; top: 12px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }
.svc--c1 .svc__visual { background: linear-gradient(135deg, #0f2038, #1d3d66); }
.svc--c2 .svc__visual { background: linear-gradient(135deg, #12304f, #0c5368); }
.svc--c3 .svc__visual { background: linear-gradient(135deg, #1a2a47, #3a3a6e); }
.svc--c4 .svc__visual { background: linear-gradient(135deg, #1b2f58, #6b5a2e); }
.svc__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc__body .link-arrow { margin-top: 6px; }

/* ---------- Why SHEHEN ---------- */
.why-grid { display: grid; gap: 14px; }
.why { padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.why .icon-box { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent); color: var(--navy-950); display: grid; place-items: center; margin-bottom: 18px; }
.why .icon-box .icon { width: 24px; height: 24px; }
.why h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: 8px; }
.why p { color: rgba(255, 255, 255, .72); }
.why-bg-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background-image: linear-gradient(var(--line-strong) 50%, transparent 50%); background-size: 2px 10px; }
.step:last-child::before { display: none; }
.step__num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--navy-900); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy-900); position: relative; z-index: 1; transition: background .3s, color .3s, border-color .3s; }
.step.in .step__num { background: var(--accent); border-color: var(--accent); color: var(--navy-950); }
.step h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; margin: 6px 0 6px; }
.step p { color: var(--muted); }

/* ---------- Network ---------- */
.net { display: grid; gap: 28px; align-items: center; }
.net__map { position: relative; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); background: radial-gradient(500px 300px at 30% 30%, rgba(36, 68, 107, .5), transparent 70%), var(--navy-950); overflow: hidden; }
.net__map svg { width: 100%; height: auto; }
.net__map .route-line { fill: none; stroke: var(--accent-400); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 9; animation: dash 30s linear infinite; }
.net__map .route-base { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.net__map .node-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .1em; fill: #fff; }
.net__map .node-hub .node-label { fill: var(--accent-400); }
.net__map .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
.net__list { display: grid; gap: 0; }
.net__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 12px 0; position: relative; color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 1.05rem; }
.net__list li small { display: block; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.net__list li::before { content: ""; position: absolute; left: 16px; top: 40px; bottom: -12px; width: 2px; background: rgba(255, 255, 255, .18); }
.net__list li:last-child::before { display: none; }
.net__list .dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent-400); display: grid; place-items: center; font-size: .72rem; color: var(--accent-400); z-index: 1; background: var(--navy-900); }
.net__list li:first-child .dot { background: var(--accent); color: #fff; }
.net__note { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed rgba(255, 255, 255, .28); font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* ---------- Assistant ---------- */
.assist { display: grid; gap: 28px; align-items: center; }
.chat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden; min-height: 420px; max-height: 560px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy-900); color: #fff; }
.chat__head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--navy-950); display: grid; place-items: center; }
.chat__head b { display: block; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; }
.chat__head small { color: rgba(255, 255, 255, .65); font-size: .74rem; }
.chat__close { margin-left: auto; background: none; border: 0; color: #fff; width: 36px; height: 36px; display: none; place-items: center; }
.chat__log { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .94rem; line-height: 1.5; box-shadow: var(--shadow-sm); }
.msg--bot { background: #fff; border-top-left-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--navy-900); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.msg ul { list-style: disc; padding-left: 18px; margin: 6px 0; }
.msg p + p, .msg p + ul { margin-top: 6px; }
.msg a { color: var(--accent-text); text-decoration: underline; }
.chat__prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; background: var(--bg); }
.chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 99px; padding: 8px 14px; font-size: .82rem; font-weight: 500; text-align: left; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chat__form { display: flex; gap: 8px; padding: 12px 16px; background: var(--bg); }
.chat__form input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 0 14px; background: #fff; }
.chat__form input:focus { outline: none; border-color: var(--accent); }
.chat__form button { width: 46px; height: 46px; border-radius: var(--r-md); border: 0; background: var(--accent); color: var(--navy-950); display: grid; place-items: center; }
.chat__disclaimer { padding: 10px 16px 14px; font-size: .74rem; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.drawer { position: fixed; z-index: 140; left: 0; right: 0; bottom: 0; top: 0; background: rgba(10, 26, 58, .5); display: none; align-items: flex-end; justify-content: center; }
.drawer.open { display: flex; }
.drawer .chat { width: 100%; max-height: 88vh; min-height: 70vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.drawer .chat__close { display: grid; }

/* ---------- Floating contact ---------- */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; box-shadow: 0 10px 24px -6px rgba(10, 26, 58, .5); transition: transform .18s; }
.fab:hover { transform: scale(1.06); }
.fab .icon { width: 28px; height: 28px; }
.fab--wa { background: #1fa855; }
.fab--ai { background: var(--navy-900); width: 48px; height: 48px; }
.fab--ai .icon { width: 22px; height: 22px; }
.wa-menu { position: absolute; right: 0; bottom: 70px; width: min(320px, calc(100vw - 32px)); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; display: none; }
.wa-menu.open { display: block; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.wa-menu__head { background: #1fa855; color: #fff; padding: 14px 16px; }
.wa-menu__head b { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.wa-menu__head small { display: block; opacity: .9; font-size: .78rem; }
.wa-menu a, .wa-menu button.wa-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border: 0; background: #fff; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; color: var(--ink); }
.wa-menu a:hover, .wa-menu button.wa-opt:hover { background: var(--bg); }
.wa-menu .wa-warn { padding: 10px 16px; font-size: .76rem; background: var(--amber-100); color: var(--amber); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--navy-950); padding-block: 44px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 56px solid rgba(17, 41, 85, .08); }
.cta-band__inner { display: grid; gap: 22px; position: relative; z-index: 1; }
.cta-band h2 { color: var(--navy-950); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.cta-band p { color: var(--navy-800); margin-top: 8px; }
.cta-band .btn--light { background: var(--navy-900); color: #fff; }
.cta-band .btn--light:hover { background: var(--navy-950); }
.cta-band .btn--ghost-light { border-color: var(--navy-900); color: var(--navy-900); }
.cta-band .btn--ghost-light:hover { background: rgba(17, 41, 85, .08); border-color: var(--navy-900); }
.cta-band__btns { display: grid; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding-top: 56px; font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.site-footer .logo__text { color: #fff; }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo__mark { background: #fff; }
.footer-about p { margin-top: 14px; max-width: 38ch; }
.footer-tag { margin-top: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; color: var(--accent-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; color: var(--accent-400); width: 1.1em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; display: grid; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .62); }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.footer-bottom .sep { margin-inline: 6px; opacity: .45; }
.impx-copyright { display: inline; }
.impx-copyright a { color: var(--accent-400); font-weight: 600; }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 2px 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; text-transform: uppercase; font-weight: 800; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.prose a { color: var(--accent-text); text-decoration: underline; }
.cfg-missing { color: #ffcf8a; font-style: normal; }

/* ---------- Forms ---------- */
.form-shell { display: grid; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.fgrid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.field label .req { color: #a33; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6879' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c62828; }
.field .err { display: none; font-size: .78rem; color: #c62828; }
.field.has-error .err { display: block; }
.field .help { font-size: .78rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.seg input, .field .seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; margin: 0; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-weight: 500; font-size: .92rem; cursor: pointer; background: #fff; }
.seg input:checked + label { border-color: var(--accent); background: var(--accent-100); color: var(--accent-text); font-weight: 600; }
.seg input:focus-visible + label { outline: 3px solid var(--accent-400); outline-offset: 2px; }
.dz { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg); position: relative; transition: border-color .15s, background .15s; }
.dz:hover, .dz.drag { border-color: var(--accent); background: var(--accent-100); }
.dz.has-file { border-style: solid; border-color: var(--green); background: var(--green-100); }
.dz .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: #fff; display: grid; place-items: center; color: var(--accent-text); }
.dz.has-file .ic { color: var(--green); }
.dz b { display: block; font-size: .92rem; color: var(--ink); }
.dz small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.dz input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.form-nav { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 24px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 24px; }
.stepper li { display: grid; gap: 8px; justify-items: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.stepper li .bar { height: 4px; width: 100%; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.stepper li .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.stepper li.done .bar::after, .stepper li.active .bar::after { transform: scaleX(1); }
.stepper li.active { color: var(--ink); }
.stepper li.done { color: var(--green); }
.stepper li .lab span { display: none; }
.stepper li.active .lab span { display: inline; }
.fstep { display: none; }
.fstep.active { display: block; animation: rise .25s ease-out; }
.fstep h2 { font-size: 1.4rem; text-transform: uppercase; font-weight: 800; margin-bottom: 4px; }
.fstep > p.sub { color: var(--muted); margin-bottom: 20px; }
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.review h4 { padding: 10px 14px; background: var(--bg); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.review h4 button { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.review dl { margin: 0; display: grid; }
.review dl > div { display: grid; grid-template-columns: 1fr; gap: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
.review dt { font-size: .74rem; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.review dd { margin: 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.review dd.empty { color: var(--faint); font-weight: 400; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); background: var(--amber-100); border-radius: var(--r-md); padding: 12px 14px; margin-top: 18px; }
.demo-note .icon { color: var(--amber); margin-top: 2px; }
.success { text-align: center; padding: 28px 8px; display: none; }
.success.show { display: block; animation: rise .3s ease-out; }
.success .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--green-100); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.success .ok .icon { width: 38px; height: 38px; stroke-width: 2.4; }
.success h2 { font-size: 1.8rem; text-transform: uppercase; font-weight: 800; }
.success .refbox { display: inline-block; margin: 18px 0; padding: 14px 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg); }
.success .refbox small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.success .refbox b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .04em; color: var(--ink); }
.success p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.success .acts { display: grid; gap: 10px; margin-top: 22px; max-width: 360px; margin-inline: auto; }
.aside-card { background: var(--navy-900); color: rgba(255, 255, 255, .78); border-radius: var(--r-lg); padding: 24px; }
.aside-card h3 { color: #fff; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 14px; font-weight: 800; letter-spacing: .04em; }
.aside-card li { display: flex; gap: 10px; padding: 8px 0; }
.aside-card li .icon { color: var(--accent-400); margin-top: 3px; }

/* ---------- Track page ---------- */
.track-hero-form { background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); margin-top: 26px; max-width: 760px; }
.track-hero-form .track-form { grid-template-columns: 1fr; }
.demo-ids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.trk--lg .timeline li { padding-bottom: 20px; }
.empty-state { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff; color: var(--muted); }
.empty-state .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 14px; color: var(--faint); }
.notfound { border: 1px solid #f3c1bc; background: #fdecea; color: #8a1c14; padding: 14px 16px; border-radius: var(--r-md); font-size: .94rem; }

/* ---------- Resources ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: #fff; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.tab[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.res-grid { display: grid; gap: 16px; }
.res { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.res:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.res .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--accent-100); color: var(--accent-text); display: grid; place-items: center; }
.res .tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.res h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.res p { color: var(--muted); font-size: .93rem; flex: 1; }
.res .meta { font-size: .78rem; color: var(--faint); }
.res-section[hidden] { display: none; }
.res-section + .res-section { margin-top: 40px; }
.res-section > h2 { font-size: 1.5rem; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.res-section > p.sub { color: var(--muted); margin-bottom: 20px; }
.notice { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); background: #fff; font-size: .92rem; color: var(--muted); }
.notice .icon { color: var(--accent); margin-top: 2px; }

/* ---------- About / services page ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.vis-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-800); aspect-ratio: 4 / 3; }
.vis-card svg { width: 100%; height: 100%; }
.principles { display: grid; gap: 14px; }
.principle { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.principle .n { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--accent-text); line-height: 1; margin-bottom: 14px; }
.principle h3 { text-transform: uppercase; font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; letter-spacing: .04em; }
.principle p { color: var(--muted); }
.profile { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.profile > div { display: grid; padding: 14px 18px; border-top: 1px solid var(--line); }
.profile > div:first-child { border-top: 0; }
.profile dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.profile dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.svc-detail { display: grid; gap: 22px; padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-detail:first-of-type { border-top: 0; }
.svc-detail .head { display: flex; gap: 14px; align-items: center; }
.svc-detail .head .ic { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--navy-900); color: #fff; display: grid; place-items: center; flex: none; }
.svc-detail .head .ic .icon { width: 26px; height: 26px; }
.svc-detail h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); text-transform: uppercase; font-weight: 800; }
.checks li { display: flex; gap: 10px; padding: 7px 0; }
.checks .icon { color: var(--green); margin-top: 3px; stroke-width: 2.6; }
.svc-side { padding: 20px; background: var(--bg); border-radius: var(--r-lg); display: grid; gap: 14px; align-content: start; }
.svc-jump { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; position: sticky; top: var(--header-h); background: rgba(255, 255, 255, .95); z-index: 50; border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.svc-jump::-webkit-scrollbar { display: none; }
.svc-jump a { flex: none; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: .82rem; font-weight: 600; background: #fff; }
.svc-jump a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
.c-cards { display: grid; gap: 12px; }
.c-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.c-card .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-100); color: var(--accent-text); display: grid; place-items: center; }
.c-card b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.c-card span { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.map-ph { aspect-ratio: 16 / 10; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }

/* ---------- Client portal ---------- */
.portal-body { background: var(--bg); }
.portal-banner { background: var(--amber-100); color: var(--amber); font-size: .82rem; text-align: center; padding: 8px var(--gutter); font-weight: 500; }
.portal { display: grid; min-height: calc(100vh - var(--header-h)); }
.p-side { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 12px var(--gutter); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.p-side::-webkit-scrollbar { display: none; }
.p-side .who { display: none; }
.p-side a { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.p-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.p-side a.active { background: var(--accent); color: var(--navy-950); }
.p-main { padding: 20px var(--gutter) 60px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.p-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.p-title h1 { font-size: 1.6rem; text-transform: uppercase; font-weight: 800; }
.p-title p { color: var(--muted); font-size: .92rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 6px; box-shadow: var(--shadow-sm); }
.kpi .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.kpi .top .icon { color: var(--accent-text); }
.kpi .val { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; }
.kpi .val small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi .sub { font-size: .78rem; color: var(--muted); }
.p-grid { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card__head h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.card__body { padding: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl thead { display: none; }
.tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child { border-bottom: 0; }
.tbl td { display: block; min-width: 0; }
.tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tbl td.ref { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1rem; }
.tbl td.ref::before { display: none; }
.tbl td.st { grid-row: 1; grid-column: 2; text-align: right; }
.tbl td.st::before { display: none; }
.tbl td.full { grid-column: 1 / -1; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: var(--bg); }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .ic { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--bg); color: var(--navy-700); display: grid; place-items: center; flex: none; }
.doc-list b { display: block; color: var(--ink); font-size: .92rem; }
.doc-list small { color: var(--muted); font-size: .76rem; }
.doc-list .state { margin-left: auto; }
.doc-list button.ghost { border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r-sm); height: 34px; padding: 0 10px; font-size: .76rem; font-weight: 600; }
.pay-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pay-total div small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.pay-total div b { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.pay-total div.bal b { color: var(--accent-text); }
.meter { height: 12px; border-radius: 99px; background: var(--slate-100); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--green); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.meter-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: .76rem; color: var(--muted); }
.notif li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif li:last-child { border-bottom: 0; }
.notif .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); }
.notif .ic.doc { background: var(--amber-100); color: var(--amber); }
.notif .ic.clr { background: var(--accent-100); color: var(--accent-text); }
.notif .ic.del { background: var(--green-100); color: var(--green); }
.notif b { font-size: .92rem; color: var(--ink); display: block; }
.notif small { color: var(--muted); font-size: .8rem; }
.portal-detail { display: none; }
.portal-detail.open { display: block; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 28px; }
.faq-search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; color: var(--muted); }
.faq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; color: var(--ink); height: 100%; }
.faq-empty { margin-top: 14px; color: var(--muted); }
.faq-empty a { color: var(--accent-text); text-decoration: underline; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h2 { font-size: 1.3rem; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.faq[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; min-height: 56px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent-text); transition: transform .2s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { color: var(--accent-text); }
.faq__a { padding: 0 18px 18px; color: var(--muted); max-width: 70ch; }
.faq[hidden], .faq-group[hidden] { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ≥ 640px  (large phones / small tablets)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero__cta { grid-template-columns: auto auto; justify-content: start; }
  .quick__grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .fgrid--2 { grid-template-columns: 1fr 1fr; }
  .track-hero-form .track-form { grid-template-columns: 1fr auto; }
  .trk__meta { grid-template-columns: repeat(4, 1fr); }
  .principles { grid-template-columns: 1fr 1fr; }
  .c-cards { grid-template-columns: 1fr 1fr; }
  .cta-band__btns { grid-template-columns: auto auto; justify-content: start; }
  .form-nav { flex-direction: row; justify-content: space-between; }
  .stepper li .lab span { display: inline; }
  .review dl > div { grid-template-columns: 200px 1fr; gap: 12px; }
  .success .acts { grid-template-columns: 1fr 1fr; max-width: 460px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile > div { grid-template-columns: 220px 1fr; align-items: center; }
  .drawer { align-items: flex-end; justify-content: flex-end; padding: 0 16px 16px; background: transparent; pointer-events: none; }
  .drawer .chat { pointer-events: auto; width: 400px; min-height: 520px; max-height: min(640px, calc(100vh - 32px)); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
}

/* ==========================================================================
   ≥ 900px  (tablet landscape / small laptop)
   ========================================================================== */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .faq-wrap { grid-template-columns: 1fr 320px; align-items: start; }
  .faq-tools { grid-column: 1; }
  .faq-list { grid-column: 1; }
  .faq-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 20px); }
  .section { padding-block: 96px; }
  .site-nav { display: flex; align-items: center; gap: 2px; }
  .site-nav a { position: relative; white-space: nowrap; padding: 10px 12px; font-weight: 600; font-size: .94rem; color: var(--ink); border-radius: var(--r-sm); }
  .site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-toggle, .mobile-menu { display: none; }
  .header-actions { gap: 12px; }
  .header-actions .portal-link { display: none; white-space: nowrap; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 10px 6px; }
  .header-actions .quote-btn { display: inline-flex; }
  .header-actions .btn--track { display: none; }
  .logo__sub { display: none; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-top: 4px; }
  .logo__stack { display: flex; flex-direction: column; }

  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-block: 72px 140px; }
  .hero__cta { margin-top: 32px; }
  .quick { margin-top: -84px; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .qcard { grid-template-columns: 1fr; gap: 14px; padding: 24px; align-content: start; }
  .qcard__go { position: absolute; right: 20px; top: 22px; }
  .qcard { position: relative; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(6, 1fr); }
  .why-grid .why:nth-child(-n+3) { grid-column: span 2; }
  .why-grid .why:nth-child(n+4) { grid-column: span 3; }
  .why-grid .why:first-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { left: 64px; right: -24px; top: 31px; bottom: auto; width: auto; height: 2px; background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%); background-size: 10px 2px; }
  .step .step__num { margin-bottom: 8px; }
  .net { grid-template-columns: 1.5fr .7fr; gap: 48px; }
  .assist { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--wide-l { grid-template-columns: 1.2fr .8fr; }
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .form-shell { grid-template-columns: 1fr 340px; align-items: start; }
  .panel { padding: 32px; }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .svc-detail { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .c-cards { grid-template-columns: 1fr; }
  .track-form--lg { grid-template-columns: 1fr auto; }

  /* horizontal timeline on the track page */
  .trk--lg .timeline { grid-template-columns: repeat(7, 1fr); gap: 0; }
  .trk--lg .timeline li { grid-template-columns: 1fr; gap: 10px; padding: 0 6px 0 0; justify-items: start; }
  .trk--lg .timeline li::before { left: 28px; right: 0; top: 13px; bottom: auto; width: auto; height: 2px; }
  .trk--lg .timeline li:last-child::before { display: none; }
  .trk--lg .tl-title { font-size: .86rem; padding-top: 0; }

  .portal { grid-template-columns: 250px 1fr; }
  .p-side { flex-direction: column; padding: 24px 16px; overflow: visible; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); align-self: start; }
  .p-side .who { display: block; padding: 8px 14px 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .p-side .who b { display: block; color: #fff; font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
  .p-side .who small { font-size: .76rem; }
  .p-main { padding: 28px 32px 80px; }
  .p-grid--main { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .p-grid--bottom { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .tbl thead { display: table-header-group; }
  .tbl th { text-align: left; padding: 12px 18px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); background: var(--bg); font-weight: 700; }
  .tbl tr { display: table-row; }
  .tbl td { display: table-cell; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .tbl tbody tr:last-child td { border-bottom: 0; }
  .tbl td[data-l]::before { display: none; }
  .tbl td.st { text-align: left; }
  .tbl td.ref { white-space: nowrap; }
}

/* ==========================================================================
   ≥ 1200px  (desktop)
   ========================================================================== */
@media (min-width: 1200px) {
  :root { --gutter: 40px; }
  .header-actions .portal-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 10px 6px; }
  .logo__sub { display: block; white-space: nowrap; }
  .site-nav a { padding-inline: 18px; }
  .hero__inner { gap: 72px; padding-block: 96px 160px; }
  .p-grid--bottom { grid-template-columns: 1fr 1fr 1fr; }
  .panel { padding: 40px; }
}

/* ==========================================================================
   ≥ 1600px  (large desktop)
   ========================================================================== */
@media (min-width: 1600px) {
  :root { --maxw: 1440px; }
  body { font-size: 17px; }
  .hero__inner { padding-block: 120px 190px; }
  .section { padding-block: 120px; }
}
