/* NEXUS CODINGS LTD — brand stylesheet
   Palette matched to the official logo: sky blue, amber/yellow, white, with deep blue for contrast. */
:root {
  --sky-700: #0f5f9c;
  --sky-600: #1476bd;   /* logo blue */
  --sky-500: #1e88d0;   /* logo light blue */
  --sky-400: #47a8e8;
  --sky-300: #8fcdf5;
  --sky-100: #dcefff;
  --sky-50:  #f0f8ff;
  --navy:    #0b3f6b;   /* deep blue – headings / contrast */
  --navy-900:#072a48;
  --yellow:  #f5a623;   /* logo amber */
  --yellow-300: #ffd25e;
  --yellow-50: #fff8e6;
  --white: #ffffff;
  --ink: #1b2b3a;
  --muted: #5b6b7b;
  --line: #dbe6f0;
  --ok: #138a52; --ok-bg: #e6f6ee;
  --warn: #9a5b00; --warn-bg: #fff3d6;
  --danger: #c0392b; --danger-bg: #fdecea;
  --info: #0f5f9c; --info-bg: #e3f1fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 63, 107, .10);
  --shadow-lg: 0 20px 50px rgba(11, 63, 107, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 2rem } .mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 1rem }
.stack > * + * { margin-top: 1rem; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1.2 var(--font-head); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: var(--navy-900); box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-primary:hover { background: var(--yellow-300); color: var(--navy-900); }
.btn-blue { background: var(--sky-600); color: #fff; box-shadow: 0 8px 20px rgba(20,118,189,.3); }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--sky-600); color: var(--sky-600); background: transparent; }
.btn-outline:hover { background: var(--sky-600); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a02d22; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: var(--sky-600); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-900); color: #cfe3f5; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow-300); }
.topbar .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(11,63,107,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sky-50); color: var(--sky-600); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle, .nav-menu-head, .nav-contact { display: none; }
@media (max-width: 1080px) {
  /* The header's blur effect would trap the fixed menu inside the header, so phones get a solid header instead. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { min-height: 66px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font: 700 1rem var(--font-head); cursor: pointer; box-shadow: 0 4px 12px rgba(11,63,107,.25); -webkit-tap-highlight-color: transparent; }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: var(--sky-700); }
  .nav-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
  .nav-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; z-index: 200; background: #fff; display: none; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); }
  .nav-menu.open { display: flex; animation: fadeDown .2s ease; }
  .nav-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 1; background: #fff; min-height: 66px; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); margin: 0 -18px 6px; padding-left: 18px; padding-right: 18px; }
  .nav-close { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; color: var(--navy); font: 700 1rem var(--font-head); cursor: pointer; }
  .nav-close:hover, .nav-close:focus-visible { background: var(--sky-50); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; padding: 12px 14px; font-size: 1.08rem; font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { background: var(--sky-50); color: var(--sky-700); box-shadow: inset 4px 0 0 var(--yellow); }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
  .nav-cta .btn { min-height: 50px; font-size: 1rem; justify-content: center; }
  .nav-contact { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-contact a { display: flex; align-items: center; gap: 12px; min-height: 46px; color: var(--navy); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
  .nav-contact svg { flex: none; color: var(--sky-600); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) { .nav-toggle { padding: 0 12px; } .brand img { height: 38px; } }
@media (min-width: 1081px) { .nav-menu { display: flex; align-items: center; gap: 16px; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(143,205,245,.55), transparent 60%), linear-gradient(160deg, var(--sky-50) 0%, #fff 55%, var(--yellow-50) 100%); padding: 80px 0 90px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(20,118,189,.18) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sky-100); color: var(--sky-600); font: 600 .82rem/1 var(--font-head); padding: 8px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--shadow); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245,166,35,.25); }
.hero h1 { margin-top: 18px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--sky-600), var(--sky-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #34495e; max-width: 600px; }
.hero .slogan { font-family: var(--font-head); font-weight: 600; color: var(--sky-600); display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.hero .slogan::before { content: ''; width: 34px; height: 3px; background: var(--yellow); border-radius: 3px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-contact { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: .92rem; }
.hero-contact a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--navy); font-weight: 500; }
.hero-visual { position: relative; }
.code-card { background: var(--navy-900); color: #d6e9fb; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); font: 500 .9rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transform: rotate(-1.5deg); animation: float 6s ease-in-out infinite; }
.code-card .dots { display: flex; gap: 6px; margin-bottom: 14px; } .code-card .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; } .code-card .dots i:nth-child(2) { background: var(--yellow); } .code-card .dots i:nth-child(3) { background: #4cd18a; }
.code-card .k { color: var(--yellow-300); } .code-card .s { color: #8fe3b0; } .code-card .f { color: var(--sky-300); } .code-card .c { color: #6f8ba5; }
.float-badge { position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font: 600 .88rem/1.2 var(--font-head); color: var(--navy); }
.float-badge .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); }
.float-badge.b1 { left: -24px; bottom: -22px; animation: float 7s ease-in-out infinite reverse; }
.float-badge.b2 { right: -14px; top: -24px; animation: float 8s ease-in-out infinite; }
.float-badge.b2 .ic { background: var(--yellow-50); color: var(--yellow); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .float-badge.b1 { left: 0; } .float-badge.b2 { right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--sky-50); }
.section-dark { background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, var(--sky-700)); color: #e3f1fc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker, .kicker { display: inline-block; font: 700 .8rem/1 var(--font-head); color: var(--sky-600); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.section-dark .kicker { color: var(--yellow-300); }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, var(--sky-600)); color: #e3f1fc; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(245,166,35,.18); }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { max-width: 720px; font-size: 1.1rem; margin: 0; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; } .breadcrumbs a { color: var(--sky-300); text-decoration: none; } .breadcrumbs a:hover { color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 6px rgba(11,63,107,.04); }
.service-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; text-decoration: none; color: inherit; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--sky-500), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky-100); color: inherit; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { margin: 18px 0 8px; }
.service-card p { color: var(--muted); flex: 1; }
.service-card .more { font: 600 .9rem/1 var(--font-head); color: var(--sky-600); display: inline-flex; gap: 6px; align-items: center; }
.service-card:hover .more .icon { transform: translateX(4px); } .service-card .more .icon { transition: transform .2s; }
.icon-bubble { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-500), var(--sky-600)); color: #fff; box-shadow: 0 10px 20px rgba(20,118,189,.25); }
.service-card:nth-child(even) .icon-bubble { background: linear-gradient(135deg, var(--yellow), #f08c00); box-shadow: 0 10px 20px rgba(245,166,35,.3); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li .icon { color: var(--ok); margin-top: 3px; background: var(--ok-bg); border-radius: 50%; padding: 3px; }

.project-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--sky-100), var(--yellow-50)); display: grid; place-items: center; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card h3 { margin: 0; } .project-card h3 a { color: var(--navy); text-decoration: none; } .project-card h3 a::after { content: ''; position: absolute; inset: 0; } .project-card { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sky-50); color: var(--sky-700); font-size: .8rem; font-weight: 600; border: 1px solid var(--sky-100); }
.chip-yellow { background: var(--yellow-50); color: #8a5a00; border-color: #fde3a6; }

.testimonial { position: relative; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); }
.testimonial::before { content: '“'; position: absolute; top: 4px; right: 22px; font: 700 5rem/1 Georgia, serif; color: var(--sky-100); }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-600); color: #fff; font-weight: 700; font-family: var(--font-head); flex-shrink: 0; }
.stars { color: var(--yellow); letter-spacing: 2px; }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 96px; display: grid; place-items: center; padding: 16px; text-decoration: none; color: var(--navy); font-weight: 600; text-align: center; transition: box-shadow .2s, transform .2s; }
.logo-tile img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(.2); }
.logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.placeholder-box { border: 2px dashed var(--sky-300); background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--sky-50) 12px, var(--sky-50) 24px); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--navy); }
.placeholder-box strong { display: block; font-family: var(--font-head); margin-bottom: 6px; }
.ph { background: var(--yellow-50); border: 1px dashed var(--yellow); color: #7a4d00; padding: 2px 6px; border-radius: 6px; font-size: .95em; }

/* ---------- About ---------- */
.mv-card { border-top: 4px solid var(--sky-500); }
.mv-card:nth-child(2) { border-top-color: var(--yellow); }
.mv-card:nth-child(3) { border-top-color: var(--navy); }
.values-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.values-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
@media (max-width: 640px) { .values-list { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-card .photo { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 5px solid var(--sky-50); box-shadow: 0 0 0 3px var(--sky-300); }
.team-card .photo.initials { display: grid; place-items: center; font: 700 2.4rem var(--font-head); color: #fff; background: linear-gradient(135deg, var(--sky-500), var(--navy)); }
.team-card .role { color: var(--sky-600); font-weight: 600; margin-bottom: 10px; }
.collab { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .collab { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .collab { grid-template-columns: 1fr; } }
.collab .card { padding: 22px; }
.collab .icon-bubble { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; position: relative; }
.process::before { content: ''; position: absolute; top: 38px; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, var(--sky-300), var(--yellow)); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.step .num { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sky-500); color: var(--sky-600); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .3s, background .3s, color .3s; }
.step:nth-child(even) .num { border-color: var(--yellow); color: #d48806; }
.step:hover .num { transform: scale(1.08); background: var(--sky-600); color: #fff; border-color: var(--sky-600); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step h3::before { counter-increment: step; content: counter(step) '. '; color: var(--yellow); }
.step p { font-size: .9rem; color: var(--muted); }
.section-dark .step p { color: #bcd6ee; }
.step .arrow { display: none; }
@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 38px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; background: linear-gradient(180deg, var(--sky-300), var(--yellow)); }
  .step { display: grid; grid-template-columns: 78px 1fr; gap: 18px; text-align: left; padding: 10px 0; align-items: start; }
  .step .num { margin: 0; }
}
.process-flow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font: 600 1rem var(--font-head); color: var(--navy); margin-bottom: 40px; }
.process-flow span.s { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.process-flow span.a { color: var(--yellow); font-size: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--sky-600), var(--sky-500) 50%, var(--sky-400)); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(245,166,35,.35); }
.cta-band h2 { color: #fff; margin-bottom: 8px; } .cta-band p { margin: 0; color: #e6f3fd; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .93rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(30,136,208,.15); }
textarea { min-height: 130px; resize: vertical; }
input[type=file] { width: 100%; padding: 12px; border: 1.5px dashed var(--sky-300); border-radius: var(--radius-sm); background: var(--sky-50); font: inherit; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.field .error { color: var(--danger); font-size: .85rem; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sky-600); flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 700 1.05rem var(--font-head); color: var(--navy); margin-bottom: 12px; padding: 0; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid; animation: fadeDown .3s ease; }
.alert-success { background: var(--ok-bg); border-color: #b5e3c9; color: #0d6b3f; }
.alert-error { background: var(--danger-bg); border-color: #f5c0b9; color: #962d22; }
.alert-info { background: var(--info-bg); border-color: #b9dbf5; color: var(--info); }
.alert-warn { background: var(--warn-bg); border-color: #f6dc9b; color: var(--warn); }
.alert .close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; padding: 0; }
.toast-wrap { position: fixed; right: 18px; top: 90px; z-index: 200; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast-wrap .alert { box-shadow: var(--shadow-lg); margin: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: capitalize; letter-spacing: .02em; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eef1f4; color: #5b6b7b; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tiles { display: grid; gap: 14px; }
.contact-tile { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); transition: transform .2s, box-shadow .2s; }
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.contact-tile .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); flex-shrink: 0; }
.contact-tile.wa .ic { background: #e7f8ee; color: #128c4a; }
.contact-tile.tel .ic { background: var(--yellow-50); color: #c77d00; }
.contact-tile small { display: block; color: var(--muted); font-weight: 500; }
.contact-tile strong { word-break: break-word; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-card { background: linear-gradient(135deg, var(--sky-50), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cfe4; padding: 64px 0 0; margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #d6e9fb; text-decoration: none; } .site-footer a:hover { color: var(--yellow-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 56px; width: auto; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list li { display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
/* floating buttons: see 'Floating contact buttons & Nexus chatbot' below */

/* ---------- Content / prose ---------- */
.prose { max-width: 760px; } .prose h2 { margin-top: 1.6em; font-size: 1.6rem; } .prose h3 { margin-top: 1.4em; }
.prose blockquote { border-left: 4px solid var(--yellow); margin: 1.2em 0; padding: 4px 18px; color: var(--muted); }
.prose code { background: var(--sky-50); padding: 2px 6px; border-radius: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); display: block; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; } .gallery a:hover img { transform: scale(1.04); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter-bar button { border: 1.5px solid var(--line); background: #fff; color: var(--navy); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 600 .88rem var(--font-head); }
.filter-bar button.active, .filter-bar button:hover { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }
.tech-group { margin-bottom: 32px; }
.tech-group h3 { display: flex; gap: 10px; align-items: center; }
.tech-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tech-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-300); }
.tech-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); }
.tech-pill:nth-child(3n)::before { background: var(--yellow); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= App shell (portal & admin) ================= */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f4f8fc; }
.sidebar { background: var(--navy-900); color: #c9dcef; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand-box { background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 18px; display: block; text-align: center; }
.sidebar .brand-box img { height: 44px; width: auto; margin: 0 auto; }
.sidebar .area-label { font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--yellow-300); margin: 14px 10px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #c9dcef; text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: .93rem; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: var(--sky-600); color: #fff; }
.sidebar nav a .count { margin-left: auto; background: var(--yellow); color: var(--navy-900); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 8px; }
.sidebar .side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; }
.app-top .title { font: 600 1.05rem var(--font-head); color: var(--navy); margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top .who { font-size: .88rem; color: var(--muted); text-align: right; line-height: 1.3; }
.bell { position: relative; color: var(--navy); padding: 6px; display: inline-flex; }
.bell .dot { position: absolute; top: 0; right: 0; background: var(--danger); color: #fff; font-size: .65rem; border-radius: 999px; padding: 1px 5px; font-weight: 700; }
.logout-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c0b9; border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--font-head); cursor: pointer; }
.logout-btn:hover { background: var(--danger); color: #fff; }
.app-content { padding: 26px 24px 60px; max-width: 1320px; width: 100%; }
.side-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 4px; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 100; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(7,42,72,.45); }
  .side-toggle { display: inline-flex; }
  .app-top { padding: 10px 14px; }
  .app-top .who .em { display: none; }
  .app-content { padding: 18px 14px 50px; }
  .logout-btn span { display: none; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .panel-head h2 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.stat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); }
.stat.y .ic { background: var(--yellow-50); color: #c77d00; } .stat.g .ic { background: var(--ok-bg); color: var(--ok); } .stat.r .ic { background: var(--danger-bg); color: var(--danger); }
.stat .num { font: 700 1.6rem/1 var(--font-head); color: var(--navy); } .stat .lbl { font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.table th { text-align: left; background: var(--sky-50); color: var(--navy); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafcff; }
.table .num { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .icon { color: var(--sky-300); margin: 0 auto 8px; display: block; }
.progress { height: 10px; border-radius: 999px; background: var(--sky-100); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-500), var(--yellow)); border-radius: 999px; transition: width .8s ease; }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 8px 0 4px; list-style: none; padding: 0; }
.stages li { text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); position: relative; padding-top: 30px; }
.stages li::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--line); box-sizing: border-box; }
.stages li::after { content: ''; position: absolute; top: 9px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 3px; background: var(--line); }
.stages li:last-child::after { display: none; }
.stages li.done { color: var(--navy); } .stages li.done::before { background: var(--sky-600); border-color: var(--sky-600); } .stages li.done::after { background: var(--sky-600); }
.stages li.current { color: var(--sky-600); } .stages li.current::before { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 5px rgba(245,166,35,.25); }
@media (max-width: 560px) {
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .stages li { font-size: .8rem; }
  .stages li:nth-child(3n)::after { display: none; }
}

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.active { color: var(--sky-600); border-bottom-color: var(--sky-600); }
.tabs a .count { background: var(--yellow); color: var(--navy-900); border-radius: 999px; font-size: .7rem; padding: 0 7px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--sky-100); margin-left: 8px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--sky-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sky-300); }
.timeline li.req::before { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-300); }
.timeline li:last-child { border-left-color: transparent; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 6px; background: var(--sky-50); border-radius: 12px; margin-bottom: 14px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--sky-600); color: #fff; border-color: var(--sky-600); }
.msg.me .meta { color: #d6e9fb; }
.msg .meta { font-size: .75rem; color: var(--muted); margin-bottom: 3px; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; } .kv dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid var(--sky-600); padding-bottom: 18px; margin-bottom: 18px; }
.doc-head img { height: 60px; width: auto; }
.doc .totals { margin-left: auto; max-width: 320px; } .doc .totals div { display: flex; justify-content: space-between; padding: 4px 0; } .doc .totals .grand { font: 700 1.15rem var(--font-head); color: var(--navy); border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 8px; }
.items-editor td input { min-width: 80px; }
.inline-form { display: inline; }
.thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sky-50); }
.media-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.media-row label { display: grid; gap: 4px; font-size: .78rem; text-align: center; }
.media-row img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #fff; }
.auth-side { background: linear-gradient(150deg, var(--navy-900), var(--navy) 55%, var(--sky-600)); color: #e3f1fc; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; right: -100px; bottom: -100px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(245,166,35,.2); }
.auth-side h2 { color: #fff; font-size: 2rem; } .auth-side ul { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side .slogan { color: var(--yellow-300); font: 600 1.05rem var(--font-head); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-form .inner { width: 100%; max-width: 440px; }
.auth-logo { display: block; margin-bottom: 26px; } .auth-logo img { height: 66px; width: auto; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0,1fr); } .auth-side { display: none; } .auth-logo img { height: 54px; } }

@media print {
  .sidebar, .app-top, .no-print, .site-header, .site-footer, .floaters, .chat-panel, .demo-bar, .demo-strip, .topbar { display: none !important; }
  .app { display: block; background: #fff; } .doc { border: 0; padding: 0; }
}
@media (max-width: 640px) {
  .topbar .container > span { display: none; }
  .topbar .container { justify-content: center; min-height: 34px; }
  .topbar .links { gap: 14px; font-size: .78rem; }
}

/* ================= Demo mode ================= */
.icon.flip { transform: scaleX(-1); }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--navy-900); font: 700 .74rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.demo-pill-sm { font-size: .66rem; padding: 5px 9px; vertical-align: middle; margin-left: 6px; }
.demo-bar { background: repeating-linear-gradient(135deg, var(--navy-900) 0 14px, #0a3358 14px 28px); color: #fff; border-bottom: 3px solid var(--yellow); }
.demo-bar-in { max-width: 1600px; margin: 0 auto; padding: 9px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.demo-bar-text { font-size: .88rem; color: #dbe9f6; flex: 1 1 260px; }
.demo-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-bar-actions form { margin: 0; }
.dbtn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 7px 13px; font: 600 .82rem var(--font-head); text-decoration: none; cursor: pointer; white-space: nowrap; }
.dbtn:hover, .dbtn:focus-visible { background: #fff; color: var(--navy); }
.dbtn-exit { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); }
.dbtn-exit:hover { background: var(--yellow-300); color: var(--navy-900); }
.app.is-demo .sidebar { height: 100vh; }
@media (max-width: 700px) {
  .demo-bar-in { padding: 8px 12px; }
  .demo-bar-text { display: none; }
  .demo-bar-in > * { min-width: 0; }
  .demo-bar-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .demo-bar-actions form, .demo-bar-actions .dbtn { width: 100%; }
  .dbtn { justify-content: center; padding: 8px 8px; font-size: .78rem; white-space: normal; text-align: center; line-height: 1.2; }
  .app-top .demo-pill-sm { display: none; }
}
.demo-strip { background: var(--yellow-50); border-bottom: 1px solid #f6dc9b; font-size: .9rem; }
.demo-strip .container { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky-700); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.demo-badge-line { text-align: center; margin-bottom: 18px; }
.demo-card { display: flex; flex-direction: column; gap: 6px; }
.demo-card h2 { font-size: 1.4rem; margin: 6px 0 0; }
.demo-card .feature-list { margin: 8px 0 18px; }
.demo-card-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); }
.demo-card-ic.y { background: var(--yellow-50); color: #c77d00; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.demo-actions form { margin: 0; }
.demo-how ol, .demo-guide ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 6px; }
.demo-guide { border: 2px dashed var(--yellow); background: var(--yellow-50); }
.demo-creds { display: grid; gap: 8px; background: var(--sky-50); border: 1px dashed var(--sky-400); border-radius: 12px; padding: 14px 16px; margin: 14px 0 6px; }
.demo-creds div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.demo-creds span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.demo-creds code { font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--navy); user-select: all; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 18px 0 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-home { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.demo-home h2 { margin-top: 0; }
.demo-home-actions { display: grid; gap: 12px; }
.demo-home-actions form { margin: 0; }
@media (max-width: 800px) { .demo-home { grid-template-columns: 1fr; padding: 24px; } }

/* ================= CAPTCHA ================= */
.captcha-field { background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: 12px; padding: 14px 16px; }
.captcha-field label, .captcha-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; color: var(--navy); }
.captcha-field .captcha-input { max-width: 180px; }
.captcha-field.has-error { border-color: #f5c0b9; background: var(--danger-bg); }

/* ================= Floating contact buttons & Nexus chatbot ================= */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-float, .chat-launcher { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.wa-float { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(18,140,74,.35); }
.chat-launcher { width: 64px; height: 64px; background: linear-gradient(145deg, var(--sky-500), var(--sky-700)); color: #fff; box-shadow: 0 12px 28px rgba(20,118,189,.4); border: 3px solid #fff; }
.chat-launcher .icon { color: #fff; }
.chat-launcher::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--yellow); opacity: .0; animation: nexusPulse 2.8s ease-out 1.2s 3; }
@keyframes nexusPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.wa-float:hover, .chat-launcher:hover, .wa-float:focus-visible, .chat-launcher:focus-visible { transform: translateY(-2px) scale(1.05); color: #fff; }
.wa-float:focus-visible, .chat-launcher:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.float-label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); background: var(--navy-900); color: #fff; font: 600 .8rem/1 var(--font-head); padding: 8px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.wa-float:hover .float-label, .chat-launcher:hover .float-label, .wa-float:focus-visible .float-label, .chat-launcher:focus-visible .float-label { opacity: 1; transform: translateY(-50%); }
.chat-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; }
body.chat-open .floaters { display: none; }

.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 95; width: min(390px, calc(100vw - 36px)); height: min(620px, calc(100vh - 36px)); height: min(620px, calc(100dvh - 36px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(7,42,72,.28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); animation: chatIn .22s ease; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(135deg, var(--navy), var(--sky-600)); color: #fff; }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sky-600); display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--yellow); }
.chat-title { flex: 1; min-width: 0; }
.chat-title h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.chat-title p { margin: 0; font-size: .78rem; color: #d6e8f7; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title .online { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; display: inline-block; flex-shrink: 0; }
.chat-icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chat-icon-btn:hover, .chat-icon-btn:focus-visible { background: #fff; color: var(--navy); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f6faff; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-log:focus-visible { outline: 2px solid var(--sky-400); outline-offset: -2px; }
.nx-msg { display: flex; flex-direction: column; max-width: 88%; gap: 6px; }
.nx-msg.bot { align-self: flex-start; }
.nx-msg.user { align-self: flex-end; align-items: flex-end; }
.nx-msg .bubble { padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.nx-msg.bot .bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.nx-msg.user .bubble { background: var(--sky-600); color: #fff; border-bottom-right-radius: 4px; }
.nx-msg .who { font: 600 .72rem var(--font-head); color: var(--muted); }
.chat-actions { display: flex; flex-direction: column; gap: 6px; }
.chat-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--sky-300); color: var(--sky-700); font: 600 .85rem var(--font-head); text-decoration: none; }
.chat-action:hover, .chat-action:focus-visible { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }
.chat-action.wa { border-color: #25d366; color: #128c4a; }
.chat-action.wa:hover, .chat-action.wa:focus-visible { background: #25d366; color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; align-self: flex-start; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-400); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 4px; background: #f6faff; border-top: 1px solid var(--line); }
.chat-quick:empty { display: none; }
.nx-chip { border: 1px solid var(--yellow); background: var(--yellow-50); color: var(--navy-900); border-radius: 999px; padding: 7px 12px; font: 600 .8rem var(--font-head); cursor: pointer; }
.nx-chip:hover, .nx-chip:focus-visible { background: var(--yellow); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(30,136,208,.18); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chat-send:hover, .chat-send:focus-visible { background: var(--yellow-300); }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); background: #fff; text-align: center; }
@media (max-width: 640px) {
  .floaters { right: 12px; bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .wa-float { width: 52px; height: 52px; }
  .chat-launcher { width: 56px; height: 56px; }
  .float-label { display: none; }
  /* keep the end of every page clear of the floating buttons */
  .site-footer { padding-bottom: 140px; }
  .site-footer .footer-bottom { padding-right: 0; }
}
@media (max-width: 560px) {
  .chat-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  body.chat-open { overflow: hidden; }
}
/* keep the footer's last line clear of the floating buttons on larger screens */
@media (min-width: 641px) { .site-footer .footer-bottom { padding-right: 96px; } }

/* Grid children may shrink below their content width so wide tables scroll inside their box on phones */
.grid > *, .two-col > *, .form-grid > * { min-width: 0; }

.demo-guide > summary { cursor: pointer; list-style: none; }
.demo-guide > summary::-webkit-details-marker { display: none; }
.demo-guide > summary h2::after { content: '▾'; font-size: .9em; margin-left: 6px; color: var(--muted); }
.demo-guide:not([open]) > summary { margin-bottom: 0; }
.demo-guide:not([open]) > summary h2::after { content: '▸'; }
@media (max-width: 480px) { .app-top .who { display: none; } }
.demo-how h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.captcha-row[hidden] { display: none; }
.captcha-img { width: 200px; height: 64px; border-radius: 10px; border: 1px solid var(--sky-300); background: #f0f8ff; }
.captcha-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--sky-600); background: #fff; color: var(--sky-600); border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--font-head); cursor: pointer; }
.captcha-btn:hover, .captcha-btn:focus-visible { background: var(--sky-600); color: #fff; }
.captcha-field .captcha-input { max-width: 220px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.captcha-field .captcha-input[inputmode="numeric"] { text-transform: none; letter-spacing: normal; }
.captcha-field .hint .link-btn { margin-left: 4px; }

/* Sample portfolio projects */
.chip-sample { background: var(--navy); color: #fff; border-color: var(--navy); }
.sample-note { display: flex; gap: 10px; align-items: flex-start; background: var(--yellow-50); border: 1px solid #fde3a6; border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: .92rem; color: #6b4600; }

/* Image upload requirements (admin) */
.img-spec { margin-top: 10px; background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: 12px; padding: 12px 14px; font-size: .86rem; }
.img-spec-head { display: flex; align-items: center; gap: 6px; font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--sky-700); margin-bottom: 8px; }
.img-spec dl { margin: 0; display: grid; gap: 4px; }
.img-spec dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.img-spec dt { color: var(--muted); font-weight: 600; }
.img-spec dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .img-spec dl > div { grid-template-columns: 1fr; gap: 0; } .img-spec dl > div + div { margin-top: 6px; } }
.img-check:empty { display: none; }
.img-check { margin-top: 10px; display: grid; gap: 4px; }
.img-check p { margin: 0; padding: 7px 10px; border-radius: 8px; font-weight: 600; }
.img-check .good { background: var(--ok-bg); color: var(--ok); }
.img-check .warn { background: var(--warn-bg); color: var(--warn); }
.img-check .bad { background: var(--danger-bg); color: var(--danger); }

/* Staff portals */
.fin-big { font: 700 1.5rem var(--font-head); color: var(--navy); margin: 0 0 6px; }
.fin-big.ok { color: var(--ok); }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.todo-list li .icon { flex-shrink: 0; margin-top: 2px; }
.todo-list li.warn { background: var(--warn-bg); color: #6b4600; }
.todo-list li.info { background: var(--info-bg); color: var(--info); }
.todo-list li.ok { background: var(--ok-bg); color: var(--ok); }
.quick-links { display: grid; gap: 4px; }
.quick-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; }
.quick-links a:hover { background: var(--sky-50); }
.role-pill { display: inline-block; font: 600 .72rem var(--font-head); padding: 2px 8px; border-radius: 999px; background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-100); }
.demo-switch { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.dselect { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 7px 12px; font: 600 .82rem var(--font-head); cursor: pointer; max-width: 210px; }
.dselect option { color: var(--ink); background: #fff; }
@media (max-width: 700px) { .demo-switch { grid-column: 1 / -1; width: 100%; } .demo-switch .dselect { flex: 1; max-width: none; } }
@media (max-width: 700px) { .demo-bar-actions .demo-switch .dbtn { width: auto; flex-shrink: 0; } }

/* Help & tutorial */
.tutorial-video video { width: 100%; max-width: 1100px; aspect-ratio: 16/9; background: #072a48; border-radius: 14px; display: block; box-shadow: var(--shadow); }
.tutorial-steps { margin-top: 18px; }
.tutorial-steps h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tutorial-steps ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.step-jump { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.step-jump:hover, .step-jump:focus-visible { background: var(--sky-50); border-color: var(--sky-100); }
.step-jump .ts { flex: none; font: 600 .78rem var(--font-head); color: var(--sky-700); background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: 6px; padding: 2px 7px; margin-top: 2px; min-width: 46px; text-align: center; }
.step-jump.current { background: var(--yellow-50); border-color: #fde3a6; }
.tut-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.tut-card > summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.tut-card[open] > summary { margin-bottom: 8px; }

.tut-now { max-width: 1100px; margin-top: 10px; display: flex; gap: 12px; align-items: flex-start; background: var(--navy-900); color: #fff; border-radius: 12px; padding: 12px 16px; border-left: 4px solid var(--yellow); font-size: 1rem; line-height: 1.5; }
.tut-now .ts { flex: none; font: 700 .75rem var(--font-head); background: var(--yellow); color: var(--navy-900); border-radius: 999px; padding: 3px 10px; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ===== Client portal: request forms, request progress, acknowledgement pop-up ===== */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--line, #dfe7ef); border-radius: 12px; margin: 0 0 18px; }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; font-weight: 600; color: var(--navy); text-decoration: none; }
.seg-btn:hover { background: #eef6fc; }
.seg-btn.on { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--navy); }
.req-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: rs; }
.req-steps li { position: relative; padding: 10px 10px 10px 38px; border-radius: 10px; background: #eef2f6; color: var(--muted); font-weight: 600; font-size: .9rem; counter-increment: rs; }
.req-steps li::before { content: counter(rs); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #cfd9e3; color: #fff; font-size: .75rem; display: grid; place-items: center; }
.req-steps li.done { background: #e6f5ec; color: #1e7a45; } .req-steps li.done::before { content: '✓'; background: #2e9e5b; }
.req-steps li.now { background: #fff6e3; color: #8a5a00; box-shadow: inset 0 0 0 2px var(--yellow); } .req-steps li.now::before { background: var(--yellow); }
@media (max-width: 640px) { .req-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ack-dialog { background: #fff; border: 0; border-radius: 18px; padding: 30px 28px 24px; width: min(460px, calc(100vw - 32px)); text-align: center; box-shadow: 0 24px 60px rgba(11, 72, 117, .35); color: var(--ink, #12324a); }
.ack-dialog::backdrop { background: rgba(11, 40, 66, .55); backdrop-filter: blur(2px); }
.ack-dialog[open] { animation: ack-in .25s ease-out; }
@keyframes ack-in { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.ack-dialog h2 { font-size: 1.35rem; margin: 10px 0 8px; color: var(--navy); }
.ack-dialog p { margin: 0 0 10px; }
.ack-icon { width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; background: #2e9e5b; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px #e6f5ec; }
.ack-ref { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #eef6fc; color: var(--navy); }
.ack-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .ack-dialog[open] { animation: none; } }
.footer-list li.req-item { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.footer-list li.req-item:last-child { border-bottom: 0; }
.footer-list li.req-item .badge { margin-right: 4px; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }
.alert code { word-break: break-all; } .alert > span { min-width: 0; }

/* ===== Admin → Email templates ===== */
.tpl-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tpl-list { max-height: 80vh; overflow: auto; padding: 14px; }
.tpl-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 6px 6px; }
.tpl-group:first-child { margin-top: 0; }
.tpl-list ul { list-style: none; margin: 0; padding: 0; }
.tpl-list a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--navy); line-height: 1.3; }
.tpl-list a strong { display: block; font-size: .88rem; font-weight: 600; }
.tpl-list a:hover { background: #eef6fc; }
.tpl-list a.on { background: var(--navy); color: #fff; } .tpl-list a.on .muted { color: #cfe0ee; }
.tpl-preview { min-width: 0; }
.tpl-meta { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.tpl-meta > div:first-child { min-width: 0; flex: 1 1 320px; }
.tpl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.tpl-frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 10px; background: #eef3f7; }
@media (max-width: 900px) { .tpl-layout { grid-template-columns: 1fr; } .tpl-list { max-height: 320px; } .tpl-frame { height: 760px; } }

/* Comfortable tap targets on phones and tablets (WCAG 2.5.8) */
@media (max-width: 900px) {
  .topbar a { min-height: 40px; padding: 0 4px; }
  .topbar .links { gap: 8px 14px; }
  .site-footer li a { display: inline-block; padding: 8px 0; }
}

/* Demo / login pages: never wider than a phone screen */
.auth-form, .auth-form .inner { min-width: 0; }
.auth-form .btn { white-space: normal; text-align: center; }
.demo-creds code { overflow-wrap: anywhere; max-width: 100%; }

/* ===== Brand-colour refresh: Technologies, articles, clients & partners ===== */
/* Technologies */
.tech-page { background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 45%, var(--yellow-50) 100%); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 22px; }
.tech-group { margin: 0; padding: 24px; border-radius: var(--radius); background: #fff; border-top: 5px solid var(--sky-600); box-shadow: var(--shadow); }
.tech-group h3 { color: var(--navy); }
.tech-group.tone-0 { background: linear-gradient(160deg, #e3f1fc, #fff 70%); border-top-color: var(--sky-600); }
.tech-group.tone-1 { background: linear-gradient(160deg, #fff1d6, #fff 70%); border-top-color: var(--yellow); }
.tech-group.tone-1 .icon-bubble { background: linear-gradient(135deg, var(--yellow), #f08c00); }
.tech-group.tone-2 { background: linear-gradient(160deg, #dbe9f5, #fff 70%); border-top-color: var(--navy); }
.tech-group.tone-2 .icon-bubble { background: linear-gradient(135deg, var(--navy), var(--sky-700)); }
.tech-group.tone-3 { background: linear-gradient(160deg, #d9f0ff, #fff 70%); border-top-color: var(--sky-400); }
.tech-group.tone-3 .icon-bubble { background: linear-gradient(135deg, var(--sky-400), var(--sky-600)); }
.tech-group .tech-pill { background: rgba(255,255,255,.85); border-color: var(--sky-100); }
.tech-group.tone-1 .tech-pill { border-color: #ffe3a8; }
.tech-group.tone-1 .tech-pill::before { background: var(--yellow); }
.tech-group.tone-2 .tech-pill::before { background: var(--navy); }
.tech-cta { background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, var(--sky-600)); color: #e3f1fc; border-radius: var(--radius); padding: 36px 24px; box-shadow: var(--shadow-lg); }
.tech-cta h3 { color: #fff; } .tech-cta p { color: #cfe3f5; }

/* Article pages */
.article-page { background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 380px, var(--sky-50) 70%, var(--yellow-50) 100%); }
.article-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--yellow); padding: clamp(20px, 4vw, 44px); }
.article-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--sky-50); color: var(--navy); border: 1px solid var(--sky-100); padding: 6px 12px; border-radius: 999px; margin-top: 0; }
.article-meta a { color: var(--sky-700); font-weight: 600; }
.article-card .prose { max-width: none; }
.article-card .prose h2 { color: var(--navy); padding-bottom: 8px; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--yellow) 0 80px, var(--sky-100) 80px) 1; }
.article-card .prose h3 { color: var(--sky-700); }
.article-card .prose a { color: var(--sky-600); font-weight: 600; }
.article-card .prose strong { color: var(--navy); }
.article-card .prose blockquote { background: var(--yellow-50); border-left-color: var(--yellow); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--ink); }
.article-card .prose ul li::marker, .article-card .prose ol li::marker { color: var(--sky-600); font-weight: 700; }
.article-card .prose h2:last-of-type + ul, .article-card .prose h2:last-of-type + ol { background: var(--sky-50); border-radius: 12px; padding: 14px 14px 14px 34px; font-size: .92rem; }
.more-articles { margin-top: 32px; background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, var(--sky-700)); border-radius: var(--radius); padding: 26px; }
.more-articles h2 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.more-card { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px; color: #fff; text-decoration: none; font-weight: 600; transition: background .2s, transform .2s; }
.more-card svg { color: var(--yellow-300); flex: none; margin-top: 2px; }
.more-card:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); color: var(--yellow-300); }

/* Clients & partners */
.partners-band { background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, var(--sky-700)); color: #cfe3f5; position: relative; overflow: hidden; }
.partners-band::before { content: ''; position: absolute; left: -90px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(245,166,35,.14); }
.partners-band .container { position: relative; }
.partners-band h2, .partners-band h3 { color: #fff; }
.partners-band .kicker { color: var(--yellow-300); }
.partners-band .section-head p, .partners-band .muted { color: #b9d4ea !important; }
.partners-band .logo-tile { background: linear-gradient(160deg, #fff, var(--sky-50)); border: 0; border-bottom: 4px solid var(--yellow); color: var(--navy); }
.partners-band .logo-wall .logo-tile:nth-child(even) { border-bottom-color: var(--sky-400); }
.partners-band .partner-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); box-shadow: none; }
.partners-band .partner-card h3 { color: #fff; }
.partners-band .partner-card p { color: #cfe3f5 !important; }
.partners-band .partner-card a { color: var(--yellow-300); }
.partners-band .partner-mark { font-family: var(--font-head); font-size: 1.15rem; }
.partners-band .placeholder-box { background: rgba(255,255,255,.08); color: #e3f1fc; border-color: rgba(255,255,255,.25); }
#clients .logo-tile { background: linear-gradient(160deg, #fff, var(--sky-50)); border-color: var(--sky-100); border-bottom: 4px solid var(--sky-600); font-family: var(--font-head); color: var(--navy); }
#clients .logo-tile:nth-child(even) { border-bottom-color: var(--yellow); }

/* ===== Interactive explainer video ===== */
.explainer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.ex-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #072a48; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.ex-stage video { width: 100%; height: 100%; display: block; background: #072a48; }
.ex-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 0 0 26px 26px; border: 0; cursor: pointer; background: linear-gradient(0deg, rgba(7,42,72,.85), rgba(7,42,72,0) 55%); color: #fff; text-align: left; }
.ex-play-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); color: #072a48; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(245,166,35,.6); animation: exPulse 2s infinite; flex: none; }
.ex-play-ic svg { margin-left: 3px; }
.ex-play-txt { display: flex; flex-direction: column; font-size: .95rem; color: #dcefff; }
.ex-play-txt strong { font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.ex-play:hover .ex-play-ic, .ex-play:focus-visible .ex-play-ic { transform: scale(1.08); }
.ex-play[hidden] { display: none; }
@keyframes exPulse { 70% { box-shadow: 0 0 0 18px rgba(245,166,35,0); } 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); } }
.ex-actions { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.ex-act { pointer-events: auto; font: 600 .92rem var(--font-head); padding: 9px 15px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); border: 0; cursor: pointer; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.3); animation: exIn .45s both; }
.ex-act.primary { background: var(--yellow); color: #072a48; }
.ex-act.wa { background: #25d366; color: #fff; }
.ex-act:hover { transform: translateY(-2px); }
@keyframes exIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.ex-end { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,42,72,.96), rgba(11,63,107,.95) 60%, rgba(20,118,189,.95)); color: #dcefff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 6px; }
.ex-end[hidden] { display: none; }
.ex-end h3 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.9rem); margin: 0; }
.ex-end p { margin: 0 0 10px; }
.ex-end-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-wa { background: #25d366; color: #fff; } .btn-wa:hover { background: #1fb457; color: #fff; }
.btn-outline-light { border: 2px solid rgba(255,255,255,.6); color: #fff; background: transparent; } .btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.ex-replay { margin-top: 10px; background: none; border: 0; color: var(--yellow-300); font: 600 .95rem var(--font-head); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.ex-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; color: var(--ink); }
.ex-progress { height: 5px; border-radius: 3px; background: var(--sky-100); overflow: hidden; margin-bottom: 12px; }
.ex-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky-500), var(--yellow)); }
.ex-side-h { font: 700 1rem var(--font-head); color: var(--navy); margin: 0 0 8px; }
.ex-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ex-ch { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 42px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font: 500 .95rem var(--font); color: var(--ink); }
.ex-ch:hover { background: var(--sky-50); }
.ex-ch.on { background: var(--sky-100); color: var(--navy); font-weight: 700; }
.ex-n { font: 700 .78rem var(--font-head); background: var(--sky-50); color: var(--sky-700); border-radius: 999px; padding: 3px 8px; flex: none; }
.ex-ch.on .ex-n { background: var(--yellow); color: #072a48; }
.ex-title { flex: 1; }
.ex-time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.explainer-band { background: linear-gradient(180deg, var(--sky-100), var(--sky-50)); }
.hero-watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 600 1rem var(--font-head); color: var(--navy); text-decoration: none; }
.hero-watch .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #072a48; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(245,166,35,.4); }
.hero-watch:hover { color: var(--sky-700); }
.transcript { columns: 2 320px; column-gap: 32px; color: var(--ink); }
.transcript p { break-inside: avoid; margin: 0 0 10px; }
@media (max-width: 900px) {
  .explainer { grid-template-columns: minmax(0, 1fr); }
  .ex-play { padding: 0 0 14px 14px; } .ex-play-ic { width: 58px; height: 58px; } .ex-play-txt strong { font-size: 1.05rem; }
  .ex-actions { top: 8px; right: 8px; } .ex-act { font-size: .8rem; padding: 7px 11px; }
  .ex-end .btn { padding: 10px 14px; font-size: .9rem; }
  .ex-chapters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .ex-end p { display: none; } .ex-end-btns .btn-outline-light { display: none; } }
@media (prefers-reduced-motion: reduce) { .ex-play-ic, .ex-act { animation: none; } }
@media (max-width: 600px) {
  .ex-chapters { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ex-ch { min-height: 40px; padding: 6px 8px; }
  .ex-side { padding: 12px; }
}
.explainer, .ex-side, .ex-chapters, .ex-ch { min-width: 0; }
.ex-title { min-width: 0; overflow-wrap: anywhere; }

/* ===== Share your experience ===== */
.share-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #fff, var(--yellow-50)); border: 1px solid #ffe3a8; box-shadow: var(--shadow); color: var(--ink); }
.share-cta .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: #072a48; display: grid; place-items: center; flex: none; }
.share-cta > div { flex: 1; min-width: 200px; } .share-cta strong { color: var(--navy); }
.share-page { background: linear-gradient(180deg, var(--sky-100), var(--sky-50) 50%, var(--yellow-50)); }
.share-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.share-aside { display: grid; gap: 16px; }
.share-note { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--sky-600); }
.share-note:nth-child(2) { border-top-color: var(--yellow); }
.share-note h3 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.share-note ul { margin: 0; padding-left: 1.1em; } .share-note li { margin-bottom: 6px; } .share-note p { margin: 0; }
.stars-field { border: 0; padding: 0; margin: 0; } .stars-field legend, .share-page fieldset legend { font-weight: 600; color: var(--navy); margin-bottom: 6px; padding: 0; }
.share-page fieldset { border: 0; padding: 0; margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: #d5dee8; cursor: pointer; padding: 2px; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--yellow); }
.star-input input:focus-visible + label { outline: 3px solid var(--sky-400); border-radius: 6px; }
.star-input label:hover { transform: scale(1.12); }
.thanks-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--yellow-50); color: #e0901a; }
@media (max-width: 900px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }

/* Show / hide password */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100%; padding-right: 52px !important; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--sky-700); background: var(--sky-50); }
.pw-toggle:focus-visible { outline: 3px solid var(--sky-400); outline-offset: -2px; color: var(--sky-700); }
.pw-toggle[aria-pressed="true"] { color: var(--sky-600); }
input::-ms-reveal, input::-ms-clear { display: none; }
.login-opts { align-items: center; gap: 10px; flex-wrap: wrap; }
.check.remember { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; cursor: pointer; }
.check.remember input { width: 18px; height: 18px; accent-color: var(--sky-600); }
.remember-hint { margin: -4px 0 0; }

/* Demo ↔ real account */
.demo-steps { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.demo-steps li { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: 999px; padding: 5px 11px 5px 5px; }
.demo-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sky-700); font: 700 .78rem var(--font-head); border: 1px solid var(--sky-100); }
.demo-steps li.on { color: var(--navy); font-weight: 600; border-color: var(--sky-400); }
.demo-steps li.on span { background: var(--yellow); color: #072a48; border-color: var(--yellow); }
.demo-real { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-50); border: 1px solid #ffe3a8; font-size: .92rem; }
.demo-real p { margin: 0; } .demo-real svg { vertical-align: -3px; color: #c27c0e; }
.dbtn-real { background: var(--yellow) !important; color: #072a48 !important; border-color: var(--yellow) !important; font-weight: 700; }
.practise-demo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #fff, var(--sky-50)); border-left: 5px solid var(--yellow); }
.practise-demo .pd-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-600); color: #fff; flex: none; }
.practise-demo .pd-txt { flex: 1; min-width: 240px; } .practise-demo h2 { margin: 0 0 4px; font-size: 1.2rem; }
.learn-strip { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 44px 10px 14px; margin-bottom: 16px; position: relative; border-radius: 12px; background: linear-gradient(90deg, var(--sky-50), var(--yellow-50)); border: 1px solid var(--sky-100); font-size: .93rem; color: var(--ink); }
.learn-strip .ls-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--yellow); color: #072a48; display: grid; place-items: center; flex: none; }
.learn-strip a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky-700); min-height: 36px; }
.learn-strip .ls-close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.learn-strip .ls-close:hover { background: rgba(255,255,255,.7); }
input[type=range].flash-progress { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 6px; transition: outline-color .6s; }
.switch-login { padding: 10px 12px; border-radius: 10px; background: var(--sky-50); border: 1px solid var(--sky-100); font-size: .95rem; }

/* Portal / dashboard menu on phones and tablets */
.side-close { display: none; }
@media (max-width: 960px) {
  .side-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--navy); color: #fff; font: 700 .95rem var(--font-head); box-shadow: 0 4px 12px rgba(11,63,107,.25); flex: none; }
  .side-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
  .sidebar { width: min(300px, 86vw); height: 100vh; height: 100dvh; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .side-close { display: inline-flex; align-self: flex-end; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin-bottom: 10px; border: 2px solid rgba(255,255,255,.5); border-radius: 12px; background: transparent; color: #fff; font: 700 .95rem var(--font-head); cursor: pointer; }
  .side-close:hover, .side-close:focus-visible { background: rgba(255,255,255,.12); }
  .sidebar nav a { min-height: 44px; }
  body.side-open { overflow: hidden; }
  .app-top { padding: 10px 14px; gap: 10px; }
  .app-top .who { display: none; }
  .sidebar { transition: transform .25s ease, visibility .25s; }
  .sidebar:not(.open) { visibility: hidden; }
}

/* Footer contact rows: icon beside its text, centred on the first line even when the text wraps */
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-contact li > svg { flex: none; width: 18px; height: 18px; margin-top: calc((1.5em - 18px) / 2); color: var(--yellow-300); }
.footer-contact li > a, .footer-contact li > span { min-width: 0; overflow-wrap: anywhere; padding: 0 !important; display: inline !important; }
@media (max-width: 900px) {
  .footer-contact { gap: 4px; }
  .footer-contact li { padding: 8px 0; }   /* comfortable tap height on the whole row, not only the text */
}
/* Floating WhatsApp / chat buttons must never cover an open menu */
body.menu-open .floaters, body.side-open .floaters, body.menu-open .chat-panel { display: none !important; }

/* Phone fixes: wrap project tabs, keep floaters off content */
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; overflow-x: visible; gap: 6px; border-bottom: 0; }
  .tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
  .tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); margin-bottom: 0; }
  main, .app-content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  body.field-focus .floaters { display: none; }
}
.floaters { transition: opacity .2s, visibility .2s; }
.floaters.dodge { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Installable app ---------- */
.app-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--blue-50, #eef6fc); color: var(--navy); cursor: pointer; margin-right: 4px; }
.app-back[hidden] { display: none; }
.is-app [data-install] { display: none !important; }
.is-app .topbar { display: none; }
.app-get { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.app-install-card { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, #eef6fc, #fff); border: 1px solid var(--line); box-shadow: var(--shadow, 0 10px 30px rgba(11,72,117,.08)); }
.app-install-card h2 { margin: 0 0 2px; font-size: 1.35rem; }
.app-install-card .muted { margin: 0 0 14px; }
.app-install-icon { border-radius: 20px; flex: none; box-shadow: 0 6px 16px rgba(11,72,117,.25); }
.app-state[hidden] { display: none; }
.app-ok { display: flex; gap: 8px; align-items: flex-start; color: #146c43; margin: 0; }
.app-ok .icon { flex: none; margin-top: 3px; }
.app-benefits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.app-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.app-benefits li > .icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--navy); color: #fff; }
.app-benefits strong { display: block; color: var(--navy); }
.app-benefits span { color: var(--muted, #5b6f80); font-size: .95rem; }
.app-steps { display: grid; gap: 16px; }
.app-step-card { scroll-margin-top: 100px; }
.app-step-card h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.app-step-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.app-step-card:target { outline: 3px solid var(--yellow, #F5A623); outline-offset: 2px; }
.app-kbd { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; vertical-align: middle; color: #0a84ff; }
@media (max-width: 900px) {
  .app-get { grid-template-columns: 1fr; gap: 28px; }
  .app-install-card { flex-direction: column; align-items: center; text-align: center; }
  .app-install-card .btn { width: 100%; justify-content: center; }
  .app-ok { justify-content: center; text-align: left; }
}
.app-what { margin-top: 40px; }
