/* Zenix Life Sciences — site design system (2026 redesign)
 * Clean, light, modern: Source Sans 3 (self-hosted, SIL OFL), white surfaces, hairline borders,
 * ink headings, one violet accent taken from the logo. No third-party requests.
 */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #131B2A;
  --ink-2: #4D586B;
  --ink-3: #828C9E;
  --line: #E7EAF0;
  --line-2: #D9DEE6;
  --soft: #F6F7FA;
  --white: #FFFFFF;
  --accent: #5B4BE0;          /* logo violet, a shade deeper for contrast */
  --accent-soft: #EFEDFD;
  --accent-ink: #3E2FB8;
  --ok: #16794A;
  --radius: 12px;
  --max: 1180px;
  --shadow: 0 24px 60px -20px rgba(19, 27, 42, .25), 0 2px 6px rgba(19, 27, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px;
  line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font: inherit;
  font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #26324A; color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn i { font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 28px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* ── Sections ── */
section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }

/* ── Hero ── */
.hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .55; }
.hero .wrap { position: relative; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 920px; margin: 18px auto 0; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { max-width: 760px; margin: 22px auto 0; font-size: 20px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill { font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; }
.hero-shot { margin: 64px auto 0; max-width: 1080px; position: relative; perspective: 1600px; }

/* Browser-style frame for product screenshots */
.frame { border-radius: 14px; border: 1px solid var(--line-2); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #F3F4F8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D7DBE3; }
.frame-bar span { margin-left: 12px; font-size: 12px; color: var(--ink-3); }
.frame img { width: 100%; height: auto; }
.hero-shot .frame { box-shadow: 0 24px 60px -24px rgba(19, 27, 42, .22); }

/* ── Proof strip ── */
.proof { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.proof-label { font-size: 14px; color: var(--ink-3); }
.proof-list { display: flex; gap: 36px; flex-wrap: wrap; }
.proof-list span { font-weight: 700; font-size: 17px; color: var(--ink-2); letter-spacing: .01em; }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.stat span { color: var(--ink-3); font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ── Cards / grids ── */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } section { padding: 76px 0; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 21px; margin-top: 18px; }
.card p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid;
  place-items: center; font-size: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 16px; }
.list { list-style: none; padding: 0; margin: 16px 0 0; }
.list li { position: relative; padding-left: 24px; margin: 9px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ── Platform feature rows ── */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 88px; }
.feature:first-of-type { margin-top: 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(26px, 2.8vw, 34px); margin-top: 12px; }
.feature p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
@media (max-width: 960px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; } .feature.flip .feature-copy { order: 0; } }
.cap-grid { margin-top: 88px; }
.cap { display: flex; gap: 14px; align-items: flex-start; }
.cap .icon { flex-shrink: 0; width: 36px; height: 36px; font-size: 17px; }
.cap h4 { font-size: 17px; letter-spacing: -.01em; }
.cap p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* ── Story ── */
.story { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.story-lead { font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 12px; }
.story-body p { color: var(--ink-2); margin-bottom: 18px; }
.story-points { display: grid; gap: 22px; }
.story-point { display: flex; gap: 16px; }
.story-point .icon { flex-shrink: 0; }
.story-point h4 { font-size: 18px; }
.story-point p { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 960px) { .story { grid-template-columns: 1fr; gap: 40px; } }

/* ── Industries ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--white); font-weight: 600; color: var(--ink); font-size: 15px; }
.chip i { color: var(--accent); }

/* ── Insights ── */
.insight { display: flex; flex-direction: column; }
.insight .tag { margin-top: 0; color: var(--accent); }
.insight h3 { font-size: 20px; margin-top: 10px; line-height: 1.3; }
.insight details { margin-top: 12px; }
.insight summary { cursor: pointer; list-style: none; color: var(--ink-2); font-size: 15.5px; }
.insight summary::-webkit-details-marker { display: none; }
.insight summary .more { display: block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 15px; }
.insight details[open] summary .more { display: none; }
.insight details p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insight details[open] .clamp { -webkit-line-clamp: unset; display: block; }

/* ── Careers ── */
.job { display: flex; flex-direction: column; }
.job .tag { margin-top: 0; color: var(--accent); }
.job h3 { margin-top: 8px; }
.job .meta { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.job p { flex: 1; }
.job .btn { align-self: flex-start; margin-top: 20px; }

/* ── CTA band ── */
.cta-band { background: var(--ink); color: var(--white); border-radius: 18px; padding: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); max-width: 640px; }
.cta-band p { color: #B8C0D0; margin-top: 10px; max-width: 640px; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); }
.cta-band .btn-primary:hover { background: #E8EBF2; color: var(--ink); }

/* ── Contact ── */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 12px; }
.contact-info > p { color: var(--ink-2); margin-top: 14px; }
.ci { display: flex; gap: 14px; margin-top: 24px; }
.ci .icon { flex-shrink: 0; width: 38px; height: 38px; font-size: 17px; }
.ci strong { display: block; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.ci a, .ci span { color: var(--ink); font-size: 16px; }
.form-card { border: 1px solid var(--line); border-radius: 16px; padding: 34px; background: var(--white); box-shadow: 0 1px 3px rgba(19, 27, 42, .05); }
.form-card h3 { font-size: 22px; }
.form-card .req-note { color: var(--ink-3); font-size: 14px; margin: 6px 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: #D23C3C; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.consent { font-size: 13.5px; color: var(--ink-3); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
#form-message { font-size: 15px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } .cta-band { padding: 36px 28px; } }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 44px; width: auto; }
.footer-grid p { color: var(--ink-2); font-size: 15px; margin-top: 16px; max-width: 360px; }
.footer-grid h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--ink-2); font-size: 15px; margin: 8px 0; }
.footer-grid a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; margin: 0; color: var(--ink-2); }
.footer-contact { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 6px; }
.footer-contact a { display: inline; margin: 0; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { font-size: 14px; color: var(--ink-3); }
.footer-bottom .legal { display: flex; gap: 20px; }
.disclaimer { font-size: 13px; color: var(--ink-3); max-width: 860px; margin-top: 36px; line-height: 1.55; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Gentle reveal that never hides content from crawlers or no-JS visitors */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Hero screenshot motion: soft breathing glow + gentle 3D tilt toward the pointer (site.js) */
.hero-glow { position: absolute; inset: 6% 4% -4%; z-index: 0; border-radius: 40px; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 40%, rgba(91, 75, 224, .30), transparent 70%),
              radial-gradient(55% 55% at 75% 60%, rgba(36, 120, 230, .26), transparent 70%);
  filter: blur(48px); opacity: .75; }
.hero-shot .frame { position: relative; z-index: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.tilt.tilting { transition: transform .12s ease-out, box-shadow .3s; box-shadow: 0 30px 70px -20px rgba(19, 27, 42, .28); }
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: glow-breathe 6s ease-in-out infinite; }
  .js .hero-shot.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
  .js .hero-shot.reveal .frame { transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; }
  .js .hero-shot.reveal.in { opacity: 1; transform: none; }
  .js .hero-shot.reveal.in .frame:not(.tilting) { transform: none; }
}
@keyframes glow-breathe { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: .9; transform: scale(1.03); } }

/* Hero product tour: crossfading screens with a step bar (site.js) */
.tour-stage { position: relative; aspect-ratio: 1600 / 1000; background: #fff; overflow: hidden; }
.tour-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transform: scale(1.015); transition: opacity .7s ease, transform 5.5s ease-out; }
.tour-slide.on { opacity: 1; transform: scale(1); }
.tour-steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  position: relative; z-index: 1; background: var(--white); padding: 18px 0 4px; }
.tour-steps button { all: unset; cursor: pointer; display: block; width: 100%; text-align: left; }
.tour-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.tour-steps .bar { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.tour-steps .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.tour-steps button.on .bar i { width: 100%; }
.tour-steps b { display: block; font-size: 15px; color: var(--ink-3); transition: color .3s; }
.tour-steps small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.tour-steps button.on b, .tour-steps button:hover b { color: var(--ink); }
.tour-steps.playing button.on .bar i { animation: tour-fill var(--tour-ms, 5000ms) linear forwards; }
.tour-steps.paused button.on .bar i { animation-play-state: paused; }
@keyframes tour-fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 720px) { .tour-steps { gap: 6px; } .tour-steps small { display: none; } .tour-steps b { font-size: 12px; } }

/* Stats row in the Platform section */
#platform .stats { margin: 0 0 72px; }

/* Cards in a grid appear one after another; cards lift on hover */
@media (prefers-reduced-motion: no-preference) {
  .js .grid > .reveal:nth-child(2) { transition-delay: .07s; }
  .js .grid > .reveal:nth-child(3) { transition-delay: .14s; }
  .js .grid > .reveal:nth-child(4) { transition-delay: .21s; }
  .js .grid > .reveal:nth-child(5) { transition-delay: .28s; }
  .js .grid > .reveal:nth-child(6) { transition-delay: .35s; }
  .js .grid > .reveal.in { transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-color .25s ease; }
  .js .grid > .card.reveal.in:hover { transform: translateY(-3px); transition-delay: 0s; }
}
.card:hover { border-color: rgba(91, 75, 224, .35); box-shadow: 0 14px 34px -18px rgba(19, 27, 42, .25); }
.stat b span { font-size: inherit; color: inherit; }

/* ═════════ Pages beyond the home page (2026-11 additions) ═════════ */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.opt { color: var(--ink-3); font-weight: 400; }
.req { color: #D23C3C; }
section.tight { padding: 56px 0 96px; }
.cta-section { padding-bottom: 0; }
.story-text { margin-top: 24px; }
.section-more { margin-top: 32px; }

/* Page hero for inner pages */
.page-hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 80% at 20% 0%, #000 20%, transparent 70%); opacity: .5; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 860px; margin-top: 14px; letter-spacing: -.03em; }
.page-lead { font-size: 19px; color: var(--ink-2); max-width: 760px; margin-top: 18px; }
.page-hero.center { text-align: center; padding: 110px 0 120px; }
.page-hero.center h1, .page-hero.center .page-lead { margin-left: auto; margin-right: auto; }
.hero-actions.left { justify-content: flex-start; }
.links-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 30px; font-weight: 600; }

/* Prose: legal pages and articles */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; }
.prose p { color: var(--ink-2); margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 8px 0; }
.prose li strong, .prose p strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 20px; background: var(--white); }
.table-wrap table { min-width: 560px; }
.prose .table-wrap tr:last-child td { border-bottom: 0; }

/* Demo page */
.demo-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.demo-info h2 { font-size: 26px; }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 28px; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 22px 50px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps-list li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.steps-list li:last-child::after { display: none; }
.steps-list b { display: block; font-size: 17px; }
.steps-list span { color: var(--ink-2); font-size: 15.5px; }
.note-card { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-size: 15.5px; color: var(--ink-2); }
.note-card i { color: var(--accent); font-size: 20px; }
.note-card b { color: var(--ink); }
@media (max-width: 960px) { .demo-layout { grid-template-columns: 1fr; gap: 36px; } }

/* Forms (shared) */
.form-message { margin: 0; font-size: 15px; }
.form-message.ok { color: var(--ok); }
.form-message.err { color: #D23C3C; }
.form-message.pending { color: var(--ink-3); }
.form-actions { margin-top: 16px; }
.field input, .field select, .field textarea { min-height: 46px; }

/* Security page */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-top: 12px; }
.split-head p { color: var(--ink-2); margin-top: 14px; font-size: 18px; }
.list-lg li { font-size: 16.5px; margin: 14px 0; }
.list-lg li b { color: var(--ink); }
.card > h3:nth-child(2) { margin-top: 18px; }
.controls { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.controls th, .controls td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.controls thead th { background: var(--soft); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.controls tbody th { font-weight: 600; width: 22%; }
.controls td { color: var(--ink-2); }
.controls td.ref { white-space: nowrap; color: var(--accent-ink); font-weight: 600; font-size: 14.5px; width: 16%; }
.controls tbody tr:last-child th, .controls tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Careers page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); background: var(--white); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.filter:hover { color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.job-list { display: grid; gap: 12px; }
.job-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.job-row[hidden] { display: none; }
.job-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.job-row summary::-webkit-details-marker { display: none; }
.job-row .tag { margin-top: 0; color: var(--accent); }
.job-row h3 { font-size: 21px; margin-top: 4px; }
.job-row .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 14.5px; margin-top: 6px; }
.job-toggle { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .2s; }
.job-row details[open] .job-toggle { transform: rotate(180deg); }
.job-body { padding: 0 24px 26px; border-top: 1px solid var(--line); }
.job-body > p { color: var(--ink-2); margin-top: 18px; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 8px 0 22px; }
.job-cols h4 { font-size: 15px; margin-top: 18px; }
.empty-note { color: var(--ink-3); margin-top: 18px; }
@media (max-width: 720px) { .job-cols { grid-template-columns: 1fr; gap: 0; } .job-row summary { padding: 18px; } .job-body { padding: 0 18px 22px; } }

/* Engagement models + platform CTA (home) */
.model .tag { margin-top: 16px; color: var(--accent); }
.model h3 { margin-top: 6px; }
.card p.model-fit { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.model-fit b { color: var(--ink); }
.platform-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 56px; }
.platform-cta-note { color: var(--ink-3); font-size: 14.5px; margin-left: 6px; }

/* FAQ (home) */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 20px 0; font-weight: 600; font-size: 17.5px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--ink-3); margin-top: 3px; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 36px 20px 0; color: var(--ink-2); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* Insights: link cards, article pages */
.insight { position: relative; }
.insight h3 a { color: var(--ink); }
.insight h3 a:hover { color: var(--accent-ink); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.insight > p { flex: 1; }
.read-more { margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 15px; }
.wrap.narrow { max-width: 836px; }
.article-head { padding: 56px 0 28px; }
.article-head h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; letter-spacing: -.025em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 14.5px; margin-top: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article .prose { padding-bottom: 72px; }
.article .prose > p:first-child { font-size: 18.5px; color: var(--ink); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); }
.crumbs i { font-size: 11px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 24px 26px;
  border-radius: 14px; background: var(--accent-soft); }
.article-cta b { font-size: 18px; color: var(--ink); }
.prose .article-cta p { margin: 4px 0 0; font-size: 15.5px; }
.prose p.article-note { font-size: 14px; color: var(--ink-3); margin-top: 28px; }
.more-title { font-size: 24px; margin-bottom: 22px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.more-card:hover { border-color: rgba(91, 75, 224, .35); color: var(--ink); }
.more-card .tag { margin: 0 0 8px; color: var(--accent); display: block; }
.more-card b { font-weight: 600; line-height: 1.35; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr; } }

/* Phones: comfortable tap targets and no horizontal overflow */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav { padding: 8px 18px 18px; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero-lead, .page-lead { font-size: 17.5px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 52px 0 28px; }
  .proof-list { gap: 14px 24px; }
  .platform-cta .btn { width: 100%; justify-content: center; }
  .platform-cta-note { margin-left: 0; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .card { padding: 22px; }
  .faq-item summary { font-size: 16.5px; }
  .faq-a { padding-right: 0; }
  .article-cta .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
  .stat { padding: 20px; }
  .stat b { font-size: 28px; }
}

/* Part 11 controls table becomes stacked cards on phones */
@media (max-width: 640px) {
  .table-wrap .controls { min-width: 0; }
  .controls thead { display: none; }
  .controls, .controls tbody, .controls tr, .controls th, .controls td { display: block; width: auto !important; }
  .controls tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .controls tr:last-child { border-bottom: 0; }
  .controls th, .controls td { border: 0 !important; padding: 2px 0; }
  .controls td.ref { margin: 2px 0 6px; }
}

/* Framed product screenshot under an inner-page hero (Security page sign-in) */
.page-shot { margin: 12px 0 0; max-width: 1080px; }
.page-shot .frame { box-shadow: 0 24px 60px -24px rgba(19, 27, 42, .22); }
.page-shot figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 640px) { .page-shot .frame-bar span { display: none; } }
