/* ==========================================================================
   PharmaVision — main stylesheet
   Mobile-first. Structure: tokens → base → layout → components → sections
   → page-specific → utilities. Class names are WP-theme friendly (pv- prefix
   not required; kept short and semantic).
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted Inter, SIL OFL 1.1 — no Google Fonts request) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Design tokens ---------- */
:root {
  /* Dark sections */
  --d-bg: #0E1117;
  --d-card: #161B22;
  --d-border: #1B2330;
  --d-teal: #0B4A5A;
  --accent: #00D8FF;
  --accent-2: #FFB020;
  --d-heading: #FFFFFF;
  --d-body: #C9D0D6;
  --d-muted: #71777D;

  /* Light sections */
  --l-bg: #FFFFFF;
  --l-alt: #F3F6F9;
  --l-highlight: #E7F6FA;
  --l-heading: #0E1117;
  --l-body: #3A4049;
  --l-muted: #80868D;
  --l-accent: #0B8FAA;
  --l-border: #E1E7ED;

  --detect: #22C55E;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --section-y: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; --header-h: 76px; }
}
@media (min-width: 1100px) {
  :root { --section-y: 120px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--l-body);
  background: var(--l-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--l-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--l-heading); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--accent); color: var(--d-bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--l-alt); }
.section--tight-top { padding-top: calc(var(--section-y) * .5); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { color: var(--l-body); }

/* Dark theme scope */
.dark { background: var(--d-bg); color: var(--d-body); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--d-heading); }
.dark p a, .dark .footer-email, .mobile-nav__foot a { color: var(--accent); }

/* Faint grid + lens rings motif for dark sections */
.motif-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 75%);
}
.motif-rings::after {
  content: ""; position: absolute; pointer-events: none;
  width: 720px; height: 720px; right: -260px; top: -200px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgba(0,216,255,.06) 38.3%, transparent 38.8%),
    radial-gradient(circle, transparent 52%, rgba(0,216,255,.05) 52.3%, transparent 52.8%),
    radial-gradient(circle, transparent 66%, rgba(0,216,255,.04) 66.3%, transparent 66.8%);
}

/* ---------- 4. Components ---------- */

/* Label / eyebrow */
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--l-accent); margin-bottom: 18px;
}
.dark .eyebrow { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .975rem; line-height: 1.2; text-decoration: none !important;
  border: 1.5px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--d-bg); }
.btn--primary:hover { background: #4DE5FF; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0,216,255,.55); }
.btn--secondary { background: transparent; color: var(--l-accent); border-color: var(--l-accent); }
.btn--secondary:hover { background: rgba(11,143,170,.08); }
.dark .btn--secondary { color: var(--accent); border-color: var(--accent); }
.dark .btn--secondary:hover { background: rgba(0,216,255,.08); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Wordmark */
.wordmark {
  display: inline-flex; align-items: flex-start; font-weight: 700; font-size: 1.4rem; line-height: 1;
  letter-spacing: -0.02em; text-decoration: none !important; color: var(--d-heading);
}
.wordmark__pharma { color: var(--d-heading); }
.wordmark__vision { color: var(--accent); }
.wordmark__ai {
  font-size: .55rem; font-weight: 700; letter-spacing: .06em; margin-left: 4px; margin-top: -2px;
  padding: 2px 5px; border-radius: 4px; border: 1px solid rgba(0,216,255,.55); color: var(--accent);
}
.wordmark--light .wordmark__pharma { color: var(--l-heading); }
.wordmark--light .wordmark__vision { color: var(--l-accent); }
.wordmark--light .wordmark__ai { color: var(--l-accent); border-color: rgba(11,143,170,.55); }

/* Icons */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--l-highlight); color: var(--l-accent);
}
.icon-badge .icon { width: 26px; height: 26px; }

/* Viewfinder corner brackets */
.viewfinder { position: relative; }
.viewfinder > .vf {
  position: absolute; width: 26px; height: 26px; border-color: var(--accent); border-style: solid; border-width: 0; z-index: 3; pointer-events: none;
}
.viewfinder > .vf--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.viewfinder > .vf--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.viewfinder > .vf--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.viewfinder > .vf--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

/* Detection boxes */
.detect {
  position: absolute; border: 2px solid var(--detect); border-radius: 3px; z-index: 2;
  box-shadow: 0 0 0 1px rgba(14,17,23,.25), 0 0 18px rgba(34,197,94,.25);
  animation: detect-pulse 3.2s ease-in-out infinite;
}
.detect__tag {
  position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; white-space: nowrap;
  background: var(--d-bg); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 3px; border-left: 3px solid var(--detect); line-height: 1.3;
}
.detect--tag-below .detect__tag { bottom: auto; top: 100%; margin: 4px 0 0; }
@keyframes detect-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

/* Cards */
.card {
  background: var(--l-bg); border: 1px solid var(--l-border); border-radius: var(--radius-lg); padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.section--alt .card { background: #fff; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(14,17,23,.28); border-color: #CFE7EE; }
.card h3 { font-size: 1.15rem; margin: 20px 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--l-body); }

/* Grids */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2-sm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* 5-card grid: 3 on first row, 2 on second (centered) */
.grid-5 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 1023px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > :last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); justify-self: center; width: 100%; }
}
@media (min-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-child(4) { grid-column: 2 / span 2; }
  .grid-5 > :nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--d-bg);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--d-border); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.site-header .wordmark { margin-right: auto; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; gap: 6px; }
.dark .primary-nav a {
  display: block; padding: 8px 14px; color: var(--d-body); font-weight: 500; font-size: .95rem; border-radius: 6px; text-decoration: none;
}
.dark .primary-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.dark .primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 4px;
}

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  background: transparent; border: 0; color: #fff; border-radius: 8px;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--menu { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

.header-cta { min-height: 40px; padding: 8px 14px; font-size: .875rem; }

@media (max-width: 380px) {
  .header-cta { padding: 8px 10px; font-size: .8rem; }
  .wordmark { font-size: 1.2rem; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--d-bg);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--d-border); }
.dark.mobile-nav nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; color: #fff; font-size: 1.25rem; font-weight: 600; text-decoration: none;
}
.dark.mobile-nav nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav a .icon { width: 20px; height: 20px; color: var(--d-muted); }
.mobile-nav__foot { margin-top: auto; color: var(--d-muted); font-size: .9rem; }
.mobile-nav__foot a { color: var(--accent); }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
  .header-cta { min-height: 44px; padding: 10px 18px; font-size: .925rem; }
}

/* ---------- 6. Home: Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--d-bg);
  display: flex; flex-direction: column;
}
.hero__content { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 40px; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero__sub { font-size: 1.075rem; max-width: 46ch; color: var(--d-body); margin-bottom: 32px; }
@media (min-width: 768px) { .hero__sub { font-size: 1.2rem; } }

.hero__media { position: relative; z-index: 1; height: 520px; overflow: hidden; }
.hero__frame { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 9 / 16; transform: translate(-50%, -55%); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, var(--d-bg) 0%, rgba(14,17,23,.35) 22%, rgba(14,17,23,0) 45%, rgba(14,17,23,.2) 75%, var(--d-bg) 100%);
}
.hero__media .vf { z-index: 4; }

@media (min-width: 560px) and (max-width: 959px) {
  .hero__media { height: 620px; }
  .hero__frame { width: 420px; transform: translate(-50%, -58%); }
}

@media (min-width: 960px) {
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); justify-content: center; }
  .hero__content { padding-top: 80px; padding-bottom: 80px; }
  .hero__content > * { max-width: 48%; }
  .hero h1 { max-width: 14ch; }
  .hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; height: auto; }
  .hero__frame { width: 100%; width: max(100%, 64vh); transform: translate(-50%, -45%); }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--d-bg) 0%, rgba(14,17,23,.8) 15%, rgba(14,17,23,.2) 40%, rgba(14,17,23,0) 60%),
      linear-gradient(180deg, rgba(14,17,23,.75) 0%, rgba(14,17,23,.1) 30%, rgba(14,17,23,0) 60%, var(--d-bg) 100%);
  }
  .hero__media .vf--tl, .hero__media .vf--bl { left: 30%; }
  .hero__media .vf--tl, .hero__media .vf--tr { top: 32px; }
  .hero__media .vf--bl, .hero__media .vf--br { bottom: 32px; }
  .hero__media .vf--tr, .hero__media .vf--br { right: 32px; }
}
@media (min-width: 1400px) { .hero__media { width: 50%; } }

.scroll-cue {
  display: none; position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent); animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 960px) and (min-height: 700px) { .scroll-cue { display: block; } }

/* ---------- 7. Home: How it works ---------- */
.how { border-top: 1px solid var(--d-border); overflow: hidden; }
.how .section-head h2 { margin-bottom: 0; }
.flow { list-style: none; display: grid; gap: 0; max-width: 1040px; margin: 0 auto; position: relative; z-index: 1; padding: 0;}
.flow__step {
  position: relative; background: var(--d-card); border: 1px solid var(--d-border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; align-items: center; gap: 18px;
}
.flow__icon {
  width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: rgba(0,216,255,.08); border: 1px solid rgba(0,216,255,.25);
}
.flow__icon .icon { width: 26px; height: 26px; }
.flow__num { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; color: var(--d-muted); margin-bottom: 2px; }
.flow__label { color: #fff; font-weight: 700; font-size: 1.15rem; }
.flow__arrow { display: grid; place-items: center; color: var(--accent); height: 36px; }
.flow__arrow .icon { transform: rotate(90deg); width: 22px; height: 22px; }
.how__line { text-align: center; max-width: 640px; margin: 48px auto 0; font-size: 1.075rem; position: relative; z-index: 1; }

@media (min-width: 900px) {
  .flow { display: flex; align-items: stretch; }
  .flow__step { flex: 1 1 0; min-width: 0; }
  .flow__step { flex-direction: column; text-align: center; padding: 32px 18px; gap: 16px; justify-content: center; }
  .flow__icon { width: 64px; height: 64px; }
  .flow__icon .icon { width: 30px; height: 30px; }
  .flow__arrow { height: auto; padding: 0 10px; }
  .flow__arrow .icon { transform: none; }
}

/* ---------- 8. Home: About ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.split__text p { font-size: 1.075rem; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--l-alt); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .vf { border-color: #fff; opacity: .9; }

/* ---------- 9. Home: Experience ---------- */
.stats-hero { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 768px) { .stats-hero { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.stat-big { text-align: center; padding: 36px 20px; border-radius: var(--radius-lg); background: var(--l-alt); position: relative; }
.stat-big__num { display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--l-heading); letter-spacing: -0.03em; line-height: 1.05; }
.stat-big__label { display: block; margin-top: 10px; color: var(--l-body); font-size: .975rem; max-width: 26ch; margin-left: auto; margin-right: auto; }
.stat-big::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--l-accent);
}

.proof { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--l-border); border-radius: var(--radius-lg); overflow: hidden; }
.proof__item { padding: 22px 16px; text-align: center; border-right: 1px solid var(--l-border); border-bottom: 1px solid var(--l-border); }
.proof__item:nth-child(2n) { border-right: 0; }
.proof__item:nth-last-child(-n+2) { border-bottom: 0; }
.proof__num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--l-accent); letter-spacing: -0.02em; line-height: 1.2; }
.proof__label { display: block; font-size: .875rem; color: var(--l-body); margin-top: 4px; }
@media (min-width: 768px) {
  .proof { grid-template-columns: repeat(4, 1fr); }
  .proof__item { border-bottom: 0; }
  .proof__item:nth-child(2n) { border-right: 1px solid var(--l-border); }
  .proof__item:last-child { border-right: 0; }
}
.note { text-align: center; color: var(--l-muted); font-size: .85rem; margin: 16px 0 0; }

/* ---------- 10. Logo strip ---------- */
.logos-head { text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: 40px; }
/* Logo slider with prev/next navigation */
.logo-slider { position: relative; display: flex; align-items: center; gap: 12px; }
.logo-viewport {
  flex: 1; min-width: 0; overflow: hidden; border-radius: 12px; touch-action: pan-y;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.logo-viewport.is-dragging { cursor: grabbing; }
.logo-viewport:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 4px; }
.logo-list {
  list-style: none; display: flex; gap: 16px; padding: 4px 0; margin: 0;
  transform: translate3d(0, 0, 0); will-change: transform;
}
.logo-list.is-animating { transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
.logo-item img { -webkit-user-drag: none; pointer-events: none; }
.logo-item {
  --per: 2;
  flex: 0 0 calc((100% - (var(--per) - 1) * 16px) / var(--per));
  height: 96px; display: grid; place-items: center; padding: 10px 16px;
  border: 1px solid var(--l-border); border-radius: 12px; background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
@media (min-width: 560px) { .logo-item { --per: 3; } }
@media (min-width: 900px) { .logo-item { --per: 4; height: 112px; } }
@media (min-width: 1100px) { .logo-item { --per: 5; } }
.logo-item:hover { border-color: #CFE7EE; box-shadow: 0 10px 28px -20px rgba(14,17,23,.35); }
.logo-item img {
  max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.1); opacity: .72; mix-blend-mode: multiply; transition: filter .3s, opacity .3s;
}
.logo-item:hover img { filter: none; opacity: 1; }
.logo-item--text { font-weight: 700; font-size: 1.05rem; color: #8A9097; text-align: center; }

.logo-nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--l-border); background: #fff; color: var(--l-heading);
  transition: border-color .2s, color .2s, background .2s, opacity .2s;
}
.logo-nav:hover { border-color: var(--l-accent); color: var(--l-accent); background: var(--l-highlight); }
.logo-nav .icon { width: 20px; height: 20px; }
.logo-nav[hidden] { display: none; }
@media (max-width: 559px) {
  .logo-slider { gap: 8px; }
  .logo-nav { width: 36px; height: 36px; }
}


/* ---------- 11. CTA panel ---------- */
.cta-section { padding: var(--section-y) 0; }
.cta-panel {
  position: relative; overflow: hidden; text-align: center; background: var(--d-teal); border-radius: 20px;
  padding: 56px 24px; max-width: 980px; margin: 0 auto;
}
.cta-panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, transparent 46%, rgba(0,216,255,.12) 46.4%, transparent 47%),
    radial-gradient(circle, transparent 62%, rgba(0,216,255,.09) 62.3%, transparent 62.8%),
    radial-gradient(circle, transparent 78%, rgba(0,216,255,.06) 78.3%, transparent 78.8%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel p { font-size: 1.1rem; color: #D5EEF3; max-width: 54ch; margin: 0 auto 30px; }
@media (min-width: 768px) { .cta-panel { padding: 80px 48px; } }

/* ---------- 12. Page header (inner pages) ---------- */
.page-header { position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 1px solid var(--d-border); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 20ch; }
.page-header p { font-size: 1.1rem; max-width: 52ch; margin: 0; }
@media (min-width: 768px) { .page-header { padding: 96px 0 80px; } }

/* ---------- 13. Solutions ---------- */
.problem-card .icon-badge { margin-bottom: 18px; }
.problem-card p { font-size: 1rem; color: var(--l-heading); font-weight: 500; line-height: 1.55; }

.solutions { display: grid; gap: 32px; }
@media (min-width: 900px) { .solutions { gap: 40px; } }
.solution {
  display: grid; background: #fff; border: 1px solid var(--l-border); border-radius: 20px; overflow: hidden;
}
.solution__media { position: relative; background: var(--d-bg); aspect-ratio: 16 / 9; overflow: hidden; }
.solution__body { padding: 28px 22px 32px; }
@media (min-width: 640px) { .solution__body { padding: 36px 36px 40px; } }
@media (min-width: 1000px) {
  .solution { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .solution__media { aspect-ratio: auto; min-height: 420px; }
  .solution:nth-child(even) .solution__media { order: 2; }
  .solution__body { padding: 48px; }
}
.solution__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.solution__num {
  font-size: 2.5rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--l-accent); letter-spacing: -0.04em; flex: none;
}
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--l-accent); background: var(--l-highlight); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}
.solution__title { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.7rem); }
.solution__intro { font-size: 1.075rem; color: var(--l-heading); margin-bottom: 26px; }
.sol-block { padding: 18px 0; border-top: 1px solid var(--l-border); }
.sol-block h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--l-muted); margin-bottom: 8px; }
.sol-block p { margin: 0; }
.sol-block--risk { background: var(--l-highlight); border: 0; border-radius: 12px; padding: 18px 20px; margin: 6px 0 4px; }
.sol-block--risk h4 { color: var(--l-accent); }
.sol-block--risk p { color: var(--l-heading); }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--l-highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8FAA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.sol-block--proven { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 0; }
.sol-block--proven .icon { color: var(--l-accent); flex: none; margin-top: 2px; }
.sol-block--proven strong { display: block; color: var(--l-heading); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }

/* Image placeholder (until assets are supplied) */
.img-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--d-muted);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at center, #1A2230 0%, var(--d-bg) 75%);
  padding: 24px;
}
.img-placeholder .icon { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 12px; opacity: .8; }
.img-placeholder span { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.img-placeholder small { display: block; font-size: .75rem; margin-top: 6px; max-width: 34ch; }

/* Cropped photo with overlays (keeps detection boxes aligned to the photo) */
.photo-crop { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.photo-crop__inner {
  position: absolute; left: 50%; top: 50%; aspect-ratio: 9 / 16;
  width: 100%; width: max(100cqw, 70cqh);
  transform: translate(-50%, var(--focus-y, -42%));
}
.photo-crop__inner img { width: 100%; height: 100%; object-fit: cover; }
.photo-crop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,17,23,.25), rgba(14,17,23,0) 30%, rgba(14,17,23,0) 70%, rgba(14,17,23,.35));
}

/* Pipeline */
.pipeline-card {
  position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--l-alt); border: 1px solid transparent;
}
.section--alt .pipeline-card { background: #fff; border-color: var(--l-border); }
.pipeline-card .icon { width: 28px; height: 28px; color: #71777D; }
.pipeline-card h3 { font-size: 1.05rem; margin: 18px 0 4px; color: #4A5058; }
.pipeline-card p { margin: 0; font-size: .95rem; color: var(--l-muted); }
.pill {
  position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #E9EDF1; color: #5F666D;
}

/* Overview preview */
.preview .split { grid-template-columns: 1fr; }
@media (min-width: 900px) { .preview .split { grid-template-columns: 1.15fr .85fr; } }
.preview h2 { margin-bottom: 24px; }

/* Laptop/device mockup built in CSS */
.device, .device__screen, .device__base, .device__screen img { display: block; }
.device { max-width: 640px; margin: 0 auto; text-decoration: none !important; transition: transform .35s var(--ease); }
.device:hover { transform: translateY(-4px); }
.device__screen {
  position: relative; background: #05070A; border: 1px solid #2A3240; border-radius: 14px 14px 0 0; padding: 3.2% 3.2% 3.6%;
  box-shadow: 0 40px 80px -40px rgba(0,216,255,.35);
}
.device__screen::before { content: ""; position: absolute; top: 1.3%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2A3240; }
.device__screen img { border-radius: 3px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.device__base {
  height: 16px; margin: 0 -7%; background: linear-gradient(180deg, #3A4352 0%, #1E242E 60%, #12161D 100%);
  border-radius: 0 0 16px 16px; position: relative;
}
.device__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; margin-left: -9%; background: #12161D; border-radius: 0 0 8px 8px; }
.device__play {
  position: absolute; inset: 3.2% 3.2% 3.6%; display: grid; place-items: center; background: rgba(14,17,23,0); transition: background .3s;
}
.device__play span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(14,17,23,.85); color: #fff;
  font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; border: 1px solid rgba(0,216,255,.4);
}
.device:hover .device__play { background: rgba(14,17,23,.35); }
.device:hover .device__play span, .device:focus-visible .device__play span { opacity: 1; transform: none; }

/* ---------- 14. Overview: deck viewer ---------- */
.overview-intro { padding: 56px 0 32px; text-align: center; }
.overview-intro h1 { margin-bottom: 14px; }
.overview-intro p { font-size: 1.1rem; max-width: 50ch; margin: 0 auto; }
@media (min-width: 768px) { .overview-intro { padding: 88px 0 40px; } }

.deck-section { padding: 0 0 var(--section-y); }
.deck-viewer { max-width: 1160px; margin: 0 auto; }
.deck-stage {
  position: relative; background: var(--d-bg); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: 0 30px 70px -36px rgba(14,17,23,.55); user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.deck-track { display: flex; height: 100%; transition: transform .45s var(--ease); will-change: transform; }
.deck-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; }
.deck-slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.deck-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); background: rgba(14,17,23,.7); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, opacity .2s, border-color .2s;
}
.deck-nav:hover { background: rgba(14,17,23,.92); border-color: var(--accent); }
.deck-nav[disabled] { opacity: 0; pointer-events: none; }
.deck-nav--prev { left: 14px; }
.deck-nav--next { right: 14px; }
.deck-nav .icon { width: 22px; height: 22px; }
@media (max-width: 639px) {
  .deck-nav { width: 38px; height: 38px; }
  .deck-nav--prev { left: 6px; } .deck-nav--next { right: 6px; }
}

.deck-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.deck-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--l-heading); font-size: .95rem; min-width: 64px; }
.deck-count span { color: var(--l-muted); font-weight: 500; }
.deck-progress { flex: 1; height: 4px; background: var(--l-alt); border-radius: 4px; overflow: hidden; }
.deck-progress__bar { height: 100%; width: 0; background: var(--l-accent); border-radius: 4px; transition: width .35s var(--ease); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--l-border); background: #fff; color: var(--l-heading);
}
.icon-btn:hover { border-color: var(--l-accent); color: var(--l-accent); }
.icon-btn .icon { width: 20px; height: 20px; }

.deck-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.deck-thumb {
  flex: 0 0 132px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--d-bg);
  opacity: .55; transition: opacity .2s, border-color .2s; scroll-snap-align: center; position: relative;
}
.deck-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.deck-thumb:hover { opacity: .9; }
.deck-thumb[aria-current="true"] { opacity: 1; border-color: var(--l-accent); }
.deck-thumb__n { position: absolute; left: 6px; bottom: 4px; font-size: .65rem; font-weight: 600; color: #fff; background: rgba(14,17,23,.75); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 639px) { .deck-thumb { flex-basis: 96px; } }

/* Fullscreen */
.deck-viewer:fullscreen { max-width: none; background: var(--d-bg); display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.deck-viewer:fullscreen .deck-stage { aspect-ratio: auto; flex: 1; border-radius: 0; box-shadow: none; }
.deck-viewer:fullscreen .deck-count { color: #fff; }
.deck-viewer:fullscreen .deck-progress { background: var(--d-card); }
.deck-viewer:fullscreen .deck-progress__bar { background: var(--accent); }
.deck-viewer:fullscreen .icon-btn { background: var(--d-card); border-color: var(--d-border); color: #fff; }
.deck-viewer:fullscreen .deck-thumbs { display: none; }

.deck-download { text-align: center; margin-top: 36px; }
.deck-download .btn { min-width: 240px; }

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--l-heading); }
.field label .req { color: var(--l-accent); margin-left: 2px; }
.field label .opt { font-weight: 400; color: var(--l-muted); margin-left: 4px; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--l-heading); background: #fff;
  border: 1.5px solid #D5DCE3; border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A4049' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C3CC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--l-accent); box-shadow: 0 0 0 3px rgba(11,143,170,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D93838; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(217,56,56,.14); }
.field__error { display: none; font-size: .85rem; color: #C42B2B; font-weight: 500; }
.has-error .field__error { display: block; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .925rem; color: var(--l-body); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #B9C3CC; background: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.consent__box svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.consent input:checked + .consent__box { background: var(--l-accent); border-color: var(--l-accent); }
.consent input:checked + .consent__box svg { opacity: 1; }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 3px rgba(11,143,170,.3); }
.has-error .consent__box { border-color: #D93838; }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; font-weight: 500; }
.form-status.is-error { display: block; background: #FDECEC; color: #A32020; }
.form-status.is-error a { color: #A32020; text-decoration: underline; }

.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; }
.form-success .icon-badge .icon { width: 30px; height: 30px; }
.form-success p { font-size: 1.1rem; color: var(--l-heading); font-weight: 500; margin: 0; }
.is-success .form { display: none; }
.is-success .form-success { display: block; }

/* Spinner in buttons */
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. Modal ---------- */
.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 18px;
  background: #fff; color: var(--l-body); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); overflow: auto;
}
.modal::backdrop { background: rgba(14,17,23,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { padding: 28px 28px 0; position: relative; }
.modal__head h2 { font-size: 1.5rem; margin: 0; padding-right: 40px; }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--l-alt); color: var(--l-heading); display: grid; place-items: center;
}
.modal__close:hover { background: #E4E9EE; }
.modal__close .icon { width: 20px; height: 20px; }
.modal__body { padding: 22px 28px 28px; }
@media (max-width: 480px) {
  .modal__head { padding: 22px 20px 0; } .modal__body { padding: 18px 20px 22px; }
}

/* ---------- 17. Contact ---------- */
.contact-intro { padding: 56px 0 0; }
.contact-intro p { font-size: 1.1rem; max-width: 52ch; }
@media (min-width: 768px) { .contact-intro { padding: 88px 0 0; } }
.contact-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: var(--section-y); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; } }
.contact-card {
  position: relative; overflow: hidden; background: var(--d-bg); color: var(--d-body); border-radius: 18px; padding: 32px 26px;
}
@media (min-width: 960px) { .contact-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 40px 36px; } }
.contact-list { list-style: none; display: grid; gap: 4px; position: relative; z-index: 1; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--d-border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--accent); flex: none; margin-top: 2px; }
.contact-list small { display: block; color: var(--d-muted); font-size: .8rem; letter-spacing: .02em; }
.contact-list a, .contact-list address { color: #fff !important; font-style: normal; font-weight: 500; overflow-wrap: anywhere; }
.form-card { background: #fff; border: 1px solid var(--l-border); border-radius: 18px; padding: 28px 22px; }
@media (min-width: 640px) { .form-card { padding: 40px; } }

/* ---------- 18. Privacy ---------- */
.legal { padding: 56px 0 var(--section-y); }
@media (min-width: 768px) { .legal { padding: 88px 0 var(--section-y); } }
.legal h1 { margin-bottom: 8px; }
.legal__date { color: var(--l-muted); font-size: .925rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal ul { padding-left: 1.25em; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; background: var(--l-alt); border-radius: 12px; padding: 18px 20px; margin-bottom: 1em; color: var(--l-heading); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--d-bg); color: var(--d-body); border-top: 1px solid var(--d-border); padding: 56px 0 28px; position: relative; overflow: hidden; }
.footer-top { display: grid; gap: 28px; position: relative; z-index: 1; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.footer-tagline { margin: 14px 0 0; color: var(--d-body); max-width: 60ch; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--d-body) !important; font-size: .95rem; }
.footer-links a:hover { color: #fff !important; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; }
@media (min-width: 900px) { .footer-right { text-align: right; } .footer-email { justify-content: flex-end; } }
.footer-email .icon { width: 18px; height: 18px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--d-border); color: var(--d-muted); font-size: .85rem; position: relative; z-index: 1; }

/* ---------- 20. Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; } .js .reveal-d4 { transition-delay: .32s; }

/* ---------- 21. Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }


/* ==========================================================================
   22. WordPress additions
   ========================================================================== */

/* Admin bar offsets */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-nav { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-nav { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  #wpadminbar { position: absolute; }
}

/* Custom (uploaded) hero image */
.hero--custom .hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* Uploaded solution image.
   Tall/portrait images are always shown whole (no cropping): on phones the frame takes the
   image's own shape; on desktop the image is centred on the dark panel as the column grows. */
@media (max-width: 999px) { .solution__media--tall { aspect-ratio: 2 / 3; } }
.solution__media--tall .solution__img { object-fit: contain; object-position: center; }
.solution__media--tall > .vf { display: none; } /* the artwork carries its own corners */
.solution__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Auto grid for card counts other than 5 */
@media (min-width: 1024px) { .grid--auto { grid-template-columns: repeat(3, 1fr); } }


/* Generic page content (Privacy Policy etc.) */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.entry-content h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; margin: 0 0 1em; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius); }
.entry-content .legal__date { color: var(--l-muted); font-size: .925rem; margin-bottom: 40px; }
.entry-content .legal__address { background: var(--l-alt); border-radius: 12px; padding: 18px 20px; color: var(--l-heading); }
.entry + .entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--l-border); }

/* Core WP classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--l-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-links { display: flex; gap: 12px; margin-top: 40px; }

/* No-JS submission result on the Overview page */
.form-note--success { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 28px; border-radius: 14px; background: var(--l-highlight); }
.form-note--success p { margin: 0; color: var(--l-heading); font-weight: 500; }

/* Hero buttons: side by side on phones (labels may wrap to two lines) */
@media (max-width: 559px) {
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .btn-row .btn {
    width: 100%; min-height: 56px; padding: 10px 12px; font-size: .9rem; line-height: 1.25;
    white-space: normal; text-align: center;
  }
  .hero .btn-row .btn svg { display: none; }
}

/* Dashboard screenshot under "How it works" */
.how__shot {
  position: relative; z-index: 1; max-width: 1100px; margin: 56px auto 0; padding: 0;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--d-border);
  box-shadow: 0 40px 90px -40px rgba(0, 216, 255, .35), 0 20px 40px -24px rgba(0, 0, 0, .6);
}
.how__shot img { width: 100%; height: auto; display: block; }
@media (max-width: 639px) { .how__shot { margin-top: 36px; border-radius: 10px; } }
