/* Inner pages (contact, blog, services, about, faq, customers, technologies, legal, 404).
   Loaded only by pages under /pages; the homepage and solution pages never load it.
   Quieter than the homepage: the same brand, grounds and type, fewer moving parts. */

:root {
  --sc-canvas: #08062C; --sc-surface: #14103A;
  --sc-ink: #FAFAFC; --sc-ink-soft: #A9A6C4;
  --sc-accent: #4430E9; --sc-accent-ink: #FFFFFF;
  --read: 68ch;
}
body { background: var(--ink); color: var(--bone); }

/* ---------- page hero (no video): short, dark, one clear headline ---------- */
.ph { position: relative; padding: clamp(7.5rem, 18vh, 10rem) 0 clamp(3.5rem, 9vh, 5.5rem); overflow: hidden;
  background: radial-gradient(56rem 30rem at 88% -10%, rgba(68,48,233,.32), transparent 62%), var(--ink); }
.ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(255,255,255,.08); }
.ph h1 { margin: 0; font-weight: 900; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem); line-height: 1.04; text-wrap: balance; max-width: 18ch; }
.ph .sub { margin: 1.2rem 0 0; font-weight: 300; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem); line-height: 1.65; color: #D2CFE6; max-width: 52ch; }
.ph .hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.8rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin: 0 0 1.4rem; font-size: 0.86rem; color: var(--ink-200); }
.crumbs a { text-decoration: none; color: var(--brand-200); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.kick { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 1rem; font-weight: 700; font-size: 0.95rem; color: var(--brand-200); }
.kick svg { width: 15px; height: 15px; }

/* ---------- page hero with an image sequence (scrub) ---------- */
.ph-scrub .ph-copy { bottom: clamp(2.5rem, 11vh, 6.5rem); }
.ph-scrub h1 { margin: 0; font-weight: 900; font-size: clamp(2.4rem, 1.3rem + 4vw, 5rem); line-height: 1.03; text-wrap: balance; }
.ph-scrub .sub { margin: 1.1rem 0 0; font-weight: 300; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem); line-height: 1.6; color: #E1DFF0; max-width: 44ch; }
.ph-scrub .hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.6rem; }

/* ---------- section scaffolding ---------- */
.sec { padding-block: clamp(4rem, 10vh, 6.5rem); position: relative; }
.sec--tight { padding-block: clamp(3rem, 7vh, 4.5rem); }
.sec-h { margin: 0; font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); line-height: 1.08; text-wrap: balance; }
.sec-p { margin: 0.8rem 0 0; color: var(--x-soft); font-size: 1.08rem; line-height: 1.65; max-width: 54ch; }
.x-mist { background: #F3F3F7; color: #08062C; --x-soft: #4A4570; --x-card: #FFFFFF; --x-line: #E3E1EC; }

/* ---------- direct channels (contact) ---------- */
.channels { display: grid; gap: 0.7rem; margin-top: 1.8rem; }
.channel { display: grid; grid-template-columns: 2.6rem 1fr; align-items: center; gap: 0.9rem; padding: 0.8rem 0.95rem; border-radius: 16px;
  background: #fff; border: 1px solid #E6E5EE; text-decoration: none; color: var(--ink); transition: border-color 160ms ease, transform 160ms ease; }
a.channel:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.channel .ic { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.channel .ic svg { width: 18px; height: 18px; }
.channel small { display: block; font-size: 0.8rem; color: #6B697F; }
.channel b { font-size: 1.02rem; font-weight: 700; }
.channel b[dir="ltr"] { unicode-bidi: plaintext; }

/* ---------- steps (a real sequence → numbered) ---------- */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.5rem; border-radius: 22px; background: var(--x-card); border: 1px solid var(--x-line); }
.steps li::before { content: counter(s); display: block; font-family: var(--sc-font-mono); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--brand-300); margin-bottom: 0.8rem; }
.x-light .steps li::before, .x-mist .steps li::before { color: var(--brand); }
.steps h3 { margin: 0 0 0.4rem; font-size: 1.2rem; font-weight: 900; }
.steps p { margin: 0; color: var(--x-soft); line-height: 1.6; }

/* ---------- FAQ (shared look with the solution pages) ---------- */
.qa-list { margin-top: 1.8rem; display: grid; gap: 0 2.4rem; grid-template-columns: repeat(2, 1fr); }
.qa-list details { border-bottom: 1px solid var(--x-line); padding: 1.1rem 0; }
.qa-list summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; line-height: 1.45; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 1.45rem; line-height: 1; flex: none; }
.x-dark .qa-list summary::after { color: var(--brand-200); }
.qa-list details[open] summary::after { content: "−"; }
.qa-list .a { margin: 0.7rem 0 0; color: var(--x-soft); line-height: 1.7; }
.qa-list .a p { margin: 0 0 0.6rem; }
.qa-list--one { grid-template-columns: 1fr; max-width: 52rem; }

/* ---------- chips / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.filters a { height: 2.4rem; padding: 0 1rem; border-radius: 999px; display: inline-flex; align-items: center; font-size: 0.9rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); color: #E4E1F5; transition: background-color 150ms ease, border-color 150ms ease; }
.filters a:hover { border-color: var(--brand-300); }
.filters a[aria-current] { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- blog list ---------- */
.feat { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--x-card); border: 1px solid var(--x-line); text-decoration: none; color: inherit;
  transition: transform 220ms ease, border-color 220ms ease; }
.feat:hover { transform: translateY(-4px); border-color: var(--brand-300); }
.feat__img { aspect-ratio: 16/10; background: #14103A; overflow: hidden; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.feat:hover .feat__img img { transform: scale(1.03); }
.feat__body { padding: clamp(1.5rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.feat__body h2 { margin: 0; font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); line-height: 1.15; text-wrap: balance; }
.feat__body p { margin: 0; color: var(--x-soft); line-height: 1.65; font-size: 1.04rem; }
.feat .more { margin-top: 0.4rem; font-weight: 700; color: var(--brand); }
.meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; font-size: 0.82rem; color: var(--x-soft); align-items: center; }
.meta b { color: var(--brand); font-weight: 700; }
.x-dark .meta b { color: var(--brand-300); }
.posts--list { margin-top: 1.4rem; }
.post__meta { flex-wrap: wrap; }
.news { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 3.5vw, 2.4rem); border-radius: 24px; background: var(--x-card); border: 1px solid var(--x-line); }
.news h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; }
.news p { margin: 0.4rem 0 0; color: var(--x-soft); }
.pager { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.2rem; }
.pager a, .pager span { min-width: 2.6rem; height: 2.6rem; padding: 0 0.8rem; border-radius: 999px; display: inline-grid; place-items: center; text-decoration: none; font-weight: 700; font-size: 0.92rem; border: 1px solid var(--x-line); }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- article (blog post) ---------- */
.art-head { padding: clamp(7.5rem, 17vh, 9.5rem) 0 clamp(7rem, 16vh, 9rem); background: radial-gradient(50rem 26rem at 85% -10%, rgba(68,48,233,.3), transparent 62%), var(--ink); }
.art-head h1 { margin: 0; font-weight: 900; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: 1.08; text-wrap: balance; max-width: 22ch; }
.art-head .sub { margin: 1.1rem 0 0; font-weight: 300; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.65; color: #D2CFE6; max-width: 58ch; }
.byline { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.8rem; font-size: 0.9rem; color: #C9C6DE; }
.byline .av { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 900; }
.byline b { color: #fff; font-weight: 700; display: block; }
.art-body { background: var(--bone); color: var(--ink); padding-bottom: clamp(4rem, 10vh, 6rem); }
.cover { margin: calc(clamp(7rem, 16vh, 9rem) * -1 + 1.5rem) auto 0; max-width: 64rem; border-radius: 24px; overflow: hidden; aspect-ratio: 16/8; background: #14103A; box-shadow: 0 40px 80px -40px rgba(8,6,44,.6); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 6vh, 4rem); align-items: start; }
.toc { position: sticky; top: 6rem; font-size: 0.9rem; border-inline-start: 2px solid #E3E1EC; padding-inline-start: 1rem; }
.toc p { margin: 0 0 0.7rem; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.toc a { text-decoration: none; color: #4A4570; line-height: 1.45; display: block; }
.toc a:hover, .toc a.on { color: var(--brand); }
.toc a.on { font-weight: 700; }
.toc .cta-mini { margin-top: 1.6rem; padding: 1rem; border-radius: 16px; background: var(--ink); color: #fff; }
.toc .cta-mini b { display: block; margin-bottom: 0.6rem; line-height: 1.4; }
.toc .cta-mini .btn { width: 100%; height: 2.6rem; font-size: 0.9rem; }

/* prose: free HTML from the CMS (headings, lists, images, quotes, tables, code) */
.prose { max-width: var(--read); font-size: 1.12rem; line-height: 1.85; color: #2A2650; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem); line-height: 1.25; font-weight: 900; color: var(--ink); scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; line-height: 1.35; font-weight: 900; color: var(--ink); scroll-margin-top: 6rem; }
.prose h4 { margin-top: 1.5em; font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose p { margin-bottom: 0; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--brand); }
.prose img { display: block; width: 100%; height: auto; border-radius: 18px; margin-block: 1.8em; }
.prose figure { margin: 1.8em 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 0.6em; font-size: 0.88rem; color: #6B697F; text-align: center; }
.prose blockquote { margin: 1.8em 0; padding: 1.2em 1.4em; border-radius: 0 16px 16px 0; border-inline-start: 4px solid var(--brand); background: var(--brand-50);
  font-size: 1.18rem; line-height: 1.7; font-weight: 500; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.55; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.75em 0.9em; border-bottom: 1px solid #E3E1EC; text-align: right; vertical-align: top; min-width: 9rem; }
.prose th { background: #F3F3F7; font-weight: 700; color: var(--ink); }
.prose code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: #EEEBFE; color: #281A8E; direction: ltr; unicode-bidi: isolate; }
.prose pre { direction: ltr; text-align: left; overflow-x: auto; padding: 1em 1.2em; border-radius: 14px; background: var(--ink); color: #E4E1F5; font-size: 0.9rem; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { border: 0; height: 1px; background: #E3E1EC; margin: 2.4em 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid #E3E1EC; }
.tagrow a { font-size: 0.85rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: #F3F3F7; color: #3A355E; text-decoration: none; }
.tagrow a:hover { background: var(--brand-50); color: var(--brand); }
.author { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.2rem; border-radius: 20px; background: #F3F3F7; max-width: var(--read); }
.author .av { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
.author b { display: block; }
.author p { margin: 0.2rem 0 0; color: #4A4570; font-size: 0.95rem; line-height: 1.55; }

/* ---------- generic cards grid (services, customers, systems) ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ---------- legal ---------- */
.legal { background: var(--bone); color: var(--ink); padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 6rem); }
.legal .prose { margin-inline: auto; }
.legal-meta { max-width: var(--read); margin: 0 auto 2rem; font-size: 0.9rem; color: #6B697F; }

/* ---------- footer (inside the close, like the homepage) ---------- */
.foot { align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 1rem; }
.foot__brand img { height: 20px; width: auto; filter: brightness(0); opacity: 0.8; }

@media (max-width: 900px) {
  .steps, .qa-list, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .prose { font-size: 1.06rem; line-height: 1.8; }
  .cover { border-radius: 16px; margin-inline: var(--sc-gutter); aspect-ratio: 16/9; }
}

/* ---------- the closing form section: same as the homepage (inline there) ---------- */
.close { background: var(--bone); color: var(--ink); padding: clamp(5rem, 12vh, 8rem) 0 2rem; }
.close__grid { display: grid; grid-template-columns: 1fr minmax(19rem, 27rem); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.close h2 { margin: 0; font-weight: 900; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 5rem); line-height: 1.02; text-wrap: balance; }
.close .bul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.6rem; color: #3A355E; }
.close .bul li::before { content: "✦ "; color: var(--brand); }
.close .form { background: #fff; border: 1px solid #E6E5EE; box-shadow: 0 40px 80px -40px rgba(8,6,44,.35); }
.close .form input, .close .form select, .close .form textarea { background: var(--mist); border: 1px solid #E0DEEA; color: var(--ink); }
.close .foot { display: flex; justify-content: space-between; margin-top: 4rem; font-size: 0.8rem; color: var(--ink-300); }
.close .foot__links a { color: var(--ink-300); }
@media (max-width: 900px) { .close__grid { grid-template-columns: 1fr; } .close .foot { flex-direction: column; align-items: flex-start; gap: 0.6rem; } }

/* standalone footer block (pages whose last section is not the close form) */
.site-foot { background: var(--bone); color: var(--ink); padding: 2.2rem 0 2rem; border-top: 1px solid #E6E5EE; }
.site-foot .foot { display: flex; justify-content: space-between; margin: 0; font-size: 0.8rem; color: var(--ink-300); }
.site-foot .foot__links a { color: var(--ink-300); }
@media (max-width: 900px) { .site-foot .foot { flex-direction: column; align-items: flex-start; gap: 0.6rem; } }

/* reading pages: the fixed bar gets a quiet ground over light sections, so it never sits on body text */
.bar { transition: color 200ms ease, background-color 200ms ease; }
.bar--light { background: rgba(250,250,252,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 #E6E5EE; }
.toc .cta-mini .btn { display: flex; }
/* a wide table or image in the article must never widen the page */
.art-grid { grid-template-columns: minmax(0, 1fr) 15rem; }
.art-grid > * { min-width: 0; }
@media (max-width: 900px) { .art-grid { grid-template-columns: minmax(0, 1fr); } }
