/* Pixels marketing site — shared styles (header, dropdown, buttons, cards, CTA banner, footer, motion).
   Used by: index.html, solutions.html, solution-*.html, showcase-1/2/3.html */

:root {
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #eaecf0;
  --line-soft: #f2f4f7;
  --brand: #2563eb;
  --tint: #eff6ff;
  --page-bg: #f3f7ff;
  --btn-dark: #000;
  --radius-btn: 8px;
  --radius-card: 12px;
  --container: 1200px;
  --gutter: 24px;
  --t-fast: 160ms;
  --t-med: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(48, 80, 160, .05);
  --card-shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 12px 28px rgba(48, 80, 160, .12);
}

/* Reset (marketing pages load tokens.css + this file only; layout.css is docs-shell specific) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.site p, body.site h1, body.site h2, body.site h3, body.site h4, body.site ul, body.site ol, body.site figure { margin: 0; padding: 0; }
body.site ul, body.site ol { list-style: none; }
:where(body.site) a { color: inherit; text-decoration: none; }
body.site button, body.site input, body.site select, body.site textarea { font-family: inherit; }
body.site { font-family: var(--font-family); -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.site { background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
:where(body.site) img, :where(body.site) svg { max-width: 100%; }
:where(body.site) svg { display: inline-block; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Typography ---------- */
.eyebrow { display: block; font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.14; font-weight: 600; letter-spacing: -.015em; color: #000; }
.h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.22; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.h3 { font-size: 18px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.lead { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.lead--lg { font-size: 16px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 720px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius-btn);
  font: 500 15px/1.2 var(--font-family); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn .ico { font-size: 18px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--btn-dark); color: #fff; }
.btn--dark:hover { background: #1f2937; box-shadow: 0 6px 16px rgba(16, 24, 40, .22); }
.btn--outline { background: #fff; color: var(--ink); border-color: #d0d5dd; }
.btn--outline:hover { border-color: var(--ink); box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #eef2ff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 12px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 247, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: stretch; gap: 36px; height: 68px; margin: 0 auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 15px/1 var(--font-family); color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(.4); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--ink); font-weight: 500; }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__chev { font-size: 16px; transition: transform var(--t-med) var(--ease); }
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% - 6px); left: 50%; min-width: 260px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); transition: background-color var(--t-fast) var(--ease); }
.dropdown a small { font-size: 12px; color: var(--ink-3); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--tint); }
.dropdown a[aria-current="page"] { background: var(--tint); font-weight: 500; }

.site-header__cta { flex: none; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-size: 22px; }
.mnav { display: none; }

@media (hover: hover) and (min-width: 901px) {
  .nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .nav__item:hover .nav__chev { transform: rotate(180deg); }
}

@media (max-width: 900px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
  .site-header__in { height: 60px; }
  .mnav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16, 24, 40, .1);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
  .mnav.is-open { max-height: 80vh; overflow-y: auto; visibility: visible; transition-delay: 0s; }
  .mnav__in { padding: 8px 0 20px; display: flex; flex-direction: column; }
  .mnav a, .mnav button.mnav__sub-btn { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; font: 400 16px var(--font-family); color: var(--ink); border: 0; background: none; border-bottom: 1px solid var(--line-soft); cursor: pointer; text-align: left; }
  .mnav a[aria-current="page"], .mnav .mnav__sub-btn.is-active { font-weight: 500; color: var(--brand); }
  .mnav__sub { display: none; flex-direction: column; padding-left: 14px; }
  .mnav__sub.is-open { display: flex; }
  .mnav__sub a { font-size: 15px; color: var(--ink-2); }
  .mnav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; color: #fff; }
}

/* ---------- Page hero background ---------- */
.hero-bg { background: linear-gradient(180deg, #eef4ff 0%, #f5f8ff 55%, #fff 100%); position: relative; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; right: -6%; top: -10%; width: 62%; height: 120%; background: radial-gradient(closest-side, rgba(96, 140, 255, .28), rgba(239, 246, 255, 0)); pointer-events: none; }
.hero-bg > * { position: relative; }
.fade-bg { background: linear-gradient(180deg, #f4f7ff, #fff 420px); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-card); box-shadow: var(--card-shadow); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: #dbe6fb; }
.ic-tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #f2f4f7; color: var(--ink); font-size: 20px; flex: none; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 72px 0; background: linear-gradient(90deg, #1329c5 0%, #081437 28%, #080e2d 66%, #0c248c 100%); }
.cta-banner__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-banner__kicker { font-size: 14px; font-weight: 600; }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 500; color: #fff; letter-spacing: -.01em; }
.cta-banner__text { max-width: 440px; font-size: 16px; line-height: 1.5; color: #dbe4ff; }
.cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.cta-deco { position: absolute; top: 0; bottom: 0; width: 280px; pointer-events: none; }
.cta-deco--l { left: max(2%, calc(50% - 560px)); }
.cta-deco--r { right: max(2%, calc(50% - 560px)); }
.deco-tile { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(24, 70, 191, .55); box-shadow: 0 10px 24px rgba(0, 0, 20, .25); transform: rotate(var(--r, 0deg)); animation: floaty 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.deco-tile--dark { background: #071c6f; }
.deco-tile img { width: 55%; height: auto; max-height: 55%; }
.deco-p { width: 60%; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(#00bfff, #4434ff); color: #fff; font: 800 34px/1 Inter, var(--font-family); display: flex; align-items: center; justify-content: center; }
.deco-s { width: 36%; height: 56%; border-radius: 3px; background: #ff317b; color: #fff; font: 800 26px/1 Inter, var(--font-family); display: flex; align-items: center; justify-content: center; }
.deco-star { color: #fff; font: 400 42px/1 Inter, sans-serif; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 1100px) { .cta-deco { opacity: .35; } }
@media (max-width: 700px) { .cta-deco { display: none; } .cta-banner { padding: 56px 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #f8faff; border-top: 1px solid var(--line-soft); padding: 32px 0 36px; }
.site-footer__in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand p { font-size: 14px; color: var(--ink-2); }
.social { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.social a { display: inline-flex; opacity: .85; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social img { height: 20px; width: auto; }
.site-footer .copy { font-size: 14px; color: var(--ink); padding-top: 4px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .btn { white-space: normal; }
}

/* ---------- Pricing cards (Overview preview + Pricing page) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; margin-top: 40px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 24px; height: 100%; }
.plan__head { display: flex; gap: 12px; align-items: center; }
.plan__head h3 { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); }
.plan__head p { font-size: 12px; line-height: 18px; color: var(--ink-2); }
.ptile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; flex: none; }
.ptile--green { background: #e6f7ef; color: #12b76a; }
.ptile--indigo { background: #ebe9fe; color: #4f46e5; }
.ptile--purple { background: #f3e8ff; color: #7c3aed; }
.plan__price { font-size: 36px; line-height: 44px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.plan__list { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 8px; }
.plan__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--ink); }
.plan__list .ico { font-size: 15px; color: var(--ink-2); }
.plan-pop { position: relative; border: 1.5px solid #000; border-radius: 14px; background: #fff; margin-bottom: 0; padding-top: 4px; box-shadow: 0 12px 32px rgba(16, 24, 40, .1); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.plan-pop:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 24, 40, .16); }
.plan-pop__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px; background: #fff; border: 1.5px solid #000; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.plan--pop { border: 0; box-shadow: none; }
.plan--pop.card--hover:hover { transform: none; box-shadow: none; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; align-items: stretch; }
  .plan-pop { margin-block: 12px; }
}

/* Laptop frame around app screenshot */
.laptop { margin: 0; width: 100%; filter: drop-shadow(0 24px 36px rgba(16, 24, 40, .14)); transition: transform var(--t-med) var(--ease); }
.laptop:hover { transform: translateY(-4px); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; margin-inline: 4.5%; background: #0f172a; border: 7px solid #0f172a; border-bottom-width: 6px; border-radius: 14px 14px 0 0; overflow: hidden; }
.laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #fff; }
.laptop__base { position: relative; height: 14px; background: linear-gradient(#e4e7ec, #bfc5d0); border-radius: 0 0 14px 14px; }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #98a2b3; border-radius: 0 0 8px 8px; }

