/* Components for the generated pages (silverp, solutions/*, services, deployment, integrations-security,
   company, contact) and the home-page sections added in the 2026-10 refresh. Uses only the tokens
   defined in styles.css — no new colours. */

/* ---------- page hero (dark, like the home hero, so .btn-ghost stays legible) ---------- */
.page-hero { background: var(--hero-grad), var(--rail); color: var(--hero-text); padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; max-width: 900px; margin: 14px 0 18px; }
.page-hero .lead { color: var(--hero-muted); font-size: 18px; max-width: 780px; line-height: 1.6; }
.page-hero .eyebrow { color: var(--accent); } /* rail-accent on the light hero was 2.6:1 (WCAG AA needs 4.5) */
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.crumbs { padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--accent-text); }
.subpage .crumbs { position: absolute; left: 0; right: 0; z-index: 2; color: var(--hero-muted); } /* left/right 0 + the .container width/auto margins centre it; without them it hugged the window edge */
.subpage .crumbs a { color: var(--rail-accent); }
.subpage .crumbs + .page-hero { padding-top: 92px; }

section.tight { padding: 72px 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-text); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); vertical-align: middle; }
.services-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mod-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.mod-chip svg { width: 14px; height: 14px; }

/* ---------- configurations + module cards (silverp.html) ---------- */
.config-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.config-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.config-card h3 { font-size: 20px; margin-bottom: 8px; }
.config-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.cat-block { margin-top: 44px; }
.cat-title { font-size: 22px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.module-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.module-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.mc-shot { display: block; aspect-ratio: 16 / 9; background: var(--rail); overflow: hidden; }
.mc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.mc-shot:hover img { transform: scale(1.03); }
.mc-body { padding: 20px 22px 22px; }
.mc-body h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin-bottom: 8px; }
.mc-body h3 svg { width: 19px; height: 19px; color: var(--accent); }
.mc-body p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.mc-body ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; color: var(--text); }
.mc-body li { margin: 4px 0; }

/* ---------- workflow steps ---------- */
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.flow-steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.flow-steps .n { font-family: var(--font-mono); font-weight: 700; color: color-mix(in srgb, var(--gold) 70%, #000); font-size: 14px; } /* plain gold on white was 3.4:1 */
.flow-steps h3 { font-size: 18px; margin: 8px 0 6px; }
.flow-steps p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- screenshot grid ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot { margin: 0; }
.shot-link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--rail); }
.shot-link img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- two columns, ticks, callout, security grid ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col h2 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 12px; }
.two-col p { color: var(--muted); line-height: 1.6; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--positive); border-bottom: 2.5px solid var(--positive); transform: rotate(-45deg); }
.callout { margin-top: 32px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; }
.callout h3 { font-size: 18px; margin-bottom: 6px; }
.callout p { color: var(--text); line-height: 1.6; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.sec-grid h3 { font-size: 17px; margin-bottom: 6px; }
.sec-grid p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.vm-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }

/* ---------- slim closing CTA ---------- */
.cta-slim { background: var(--hero-grad), var(--rail); color: var(--hero-text); text-align: center; padding: 64px 0; }
.cta-slim h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.cta-slim p { color: var(--hero-muted); margin-bottom: 22px; }
.cta-slim a:not(.btn) { color: var(--rail-accent); }

/* ---------- contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.enquiry { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.enquiry label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.enquiry .opt { font-weight: 400; color: var(--muted); }
.enquiry input, .enquiry select, .enquiry textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text); }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.enquiry [aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquiry .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.enquiry .consent input { margin-top: 3px; }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; margin: 0; }
.form-status.ok { color: var(--positive); font-weight: 600; }
.form-status.err { color: var(--danger); font-weight: 600; }
.contact-aside h2 { font-size: 22px; margin-bottom: 12px; }
.contact-aside h3 { font-size: 17px; margin: 24px 0 6px; }
.next-steps { padding-left: 20px; line-height: 1.6; color: var(--muted); }
.next-steps li { margin: 8px 0; }

/* ---------- mobile-menu demo link (only inside the opened burger menu) ---------- */
.nav-links .nav-demo-mobile { display: none; }

@media (max-width: 1080px) {
  .nav-links.open .nav-demo-mobile { display: block; color: var(--rail-accent); font-weight: 800; }
}
@media (max-width: 900px) {
  .flow-steps, .sec-grid, .services-grid.three { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 48px; }
  .subpage .crumbs + .page-hero { padding-top: 76px; }
  section.tight { padding: 52px 0; }
  .flow-steps, .sec-grid, .services-grid.three, .shot-grid, .field-row { grid-template-columns: 1fr; }
  .module-cards, .config-cards { grid-template-columns: 1fr; }
}

/* ---------- home: film-first hero ---------- */
.hero-audience { color: var(--hero-muted); font-size: 15px; margin-top: 10px; }
.btn-film .dur { font-family: var(--font-mono); font-size: 12px; opacity: .8; margin-left: 6px; }
.hero-film { position: relative; display: block; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; background: #0a1124; cursor: pointer; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); aspect-ratio: 16 / 9; width: 100%; }
.hero-film img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: transform .5s ease, opacity .3s; }
.hero-film:hover img, .hero-film:focus-visible img { transform: scale(1.03); opacity: 1; }
.hero-film .hf-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(36,86,214,.25); }
.hero-film .hf-play svg { width: 30px; height: 30px; margin-left: 4px; }
.hero-film .hf-cap { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(8,13,30,.72); padding: 5px 10px; border-radius: 99px; }
.hero-film:focus-visible { outline: 3px solid var(--rail-accent); outline-offset: 3px; }

/* ---------- home: industry solutions ---------- */
.sol-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.sol-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.sol-card:nth-child(4), .sol-card:nth-child(5) { grid-column: span 3; }
.sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sol-shot { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--rail); }
.sol-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sol-body { display: block; padding: 20px 22px 22px; }
.sol-body h3 { font-size: 19px; margin-bottom: 8px; }
.sol-body p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- home: engagement steps + links ---------- */
.flow-steps.four { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.engage-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 26px; font-weight: 700; }
.engage-more a { color: var(--accent-text); }
.ai-fab-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.18); padding: 2px 6px; border-radius: 99px; margin-left: 4px; }

@media (max-width: 1020px) {
  .sol-cards { grid-template-columns: 1fr 1fr; }
  .sol-card, .sol-card:nth-child(4), .sol-card:nth-child(5) { grid-column: span 1; }
  .flow-steps.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sol-cards, .flow-steps.four { grid-template-columns: 1fr; }
}

/* ---------- phones: the chat button must not cover a call to action ---------- */
@media (max-width: 640px) {
  .ai-fab { font-size: 0; gap: 0; padding: 0; width: 52px; height: 52px; justify-content: center; border-radius: 50%; }
  .ai-fab .spark, .ai-fab svg { width: 22px; height: 22px; margin: 0; }
  .ai-fab .ai-fab-tag { display: none; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* Product walkthrough (silverp.html) */
.wt-video { display: block; width: 100%; max-width: 1100px; height: auto; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: var(--radius-lg, 14px); background: #0b1222; box-shadow: 0 24px 60px rgba(10, 20, 45, .18); }
