/* Pixels marketing site — shared styles (header, dropdown, buttons, cards, CTA banner, footer, motion).
   Used by: index.html, solutions.html, solution-*.html, about.html, pricing.html, contact.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: clamp(24px, (100vw - 1040px) / 2, 120px); /* 120px at 1280 (design), 24px below ~1090 */
  --t-fast: 160ms;
  --t-med: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(48, 80, 160, 0.05);
  --card-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.05), 0 12px 28px rgba(48, 80, 160, 0.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: var(--dk-bg-ffffff, #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: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* one hero heading style for every marketing page */
.h1 {
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--dk-fg-000000, #000);
}
.h2 {
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
  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;
  line-height: 1.6;
}
.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 ----------
   One size everywhere (40px tall, 14px text), matching the design. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 22px;
  border-radius: var(--radius-btn);
  font: 500 14px/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: 20px;
  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: var(--dk-fg-ffffff, #fff);
}
.btn--dark:hover {
  background: var(--dk-bg-1f2937, #1f2937);
  box-shadow: 0 6px 16px var(--dk-sh-10182838, rgba(16, 24, 40, 0.22));
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--dk-bd-000000, #000);
}
.btn--outline:hover {
  background: var(--dk-bg-1018280a, rgba(16, 24, 40, 0.04));
  box-shadow: 0 4px 12px var(--dk-sh-10182814, rgba(16, 24, 40, 0.08));
}
.btn--white {
  background: var(--dk-bg-ffffff, #fff);
  color: var(--ink);
}
.btn--white:hover {
  background: var(--dk-bg-eef2ff, #eef2ff);
  box-shadow: 0 6px 18px var(--dk-sh-00000040, rgba(0, 0, 0, 0.25));
}
.btn--ghost-light {
  background: transparent;
  color: var(--dk-fg-ffffff, #fff);
  border-color: var(--dk-bd-ffffff, #fff);
}
.btn--ghost-light:hover {
  background: var(--dk-bg-ffffff1f, rgba(255, 255, 255, 0.12));
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dk-bg-f3f7ffe0, rgba(243, 247, 255, 0.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(0.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: var(--dk-bg-ffffff, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px var(--dk-sh-10182824, rgba(16, 24, 40, 0.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;
}
.site-header__theme {
  flex: none;
  margin-left: auto;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dk-bg-ffffff, #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: var(--dk-bg-ffffff, #fff);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px var(--dk-sh-1018281a, rgba(16, 24, 40, 0.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: var(--dk-fg-ffffff, #fff);
  }
}

/* ---------- Page hero background ---------- */
.hero-bg {
  background: linear-gradient(
    180deg,
    var(--dk-bg-eef4ff, #eef4ff) 0%,
    var(--dk-bg-f5f8ff, #f5f8ff) 55%,
    var(--dk-bg-ffffff, #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,
    var(--dk-bg-608cff47, rgba(96, 140, 255, 0.28)),
    var(--dk-bg-eff6ff00, rgba(239, 246, 255, 0))
  );
  pointer-events: none;
}
.hero-bg > * {
  position: relative;
}
.fade-bg {
  background: linear-gradient(180deg, var(--dk-bg-f4f7ff, #f4f7ff), var(--dk-bg-ffffff, #fff) 420px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--dk-bg-ffffff, #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: var(--dk-bd-dbe6fb, #dbe6fb);
}
.ic-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dk-bg-f2f4f7, #f2f4f7);
  color: var(--ink);
  font-size: 20px;
  flex: none;
}

/* CTA banner: see css/cta.css (kept out of the generated dark theme; it is dark in both themes) */

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dk-bg-f8faff, #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: 0.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 (home preview + Pricing page) ----------
   Cards take their natural height and bottom-align, so the Professional card
   (one extra feature row) stands 32px taller, as in the design. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 40px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-color: var(--line);
  border-radius: 16px;
}
.plan__head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.plan__head h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}
.plan__head p {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
}
.ptile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 22px;
  flex: none;
}
.ptile .ico {
  stroke-width: 1.75;
}
.ptile--green {
  background: var(--dk-bg-eaf8f5, #eaf8f5);
  color: var(--dk-fg-00a698, #00a698);
}
.ptile--indigo {
  background: var(--dk-bg-eef5ff, #eef5ff);
  color: var(--dk-fg-3c82f6, #3c82f6);
}
.ptile--purple {
  background: var(--dk-bg-f0eeff, #f0eeff);
  color: var(--dk-fg-4837ff, #4837ff);
}
.plan__price {
  font-size: 44px;
  line-height: 52px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-top: 4px;
}
.plan__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.plan__list .ico {
  width: 18px;
  height: 18px;
  padding: 4px;
  border-radius: 50%;
  background: var(--dk-bg-f2f4f7, #f2f4f7);
  color: var(--dk-fg-000000, #000);
  stroke-width: 2.5;
}
.plan-pop {
  position: relative;
  border: 1px solid var(--dk-bd-000000, #000);
  border-radius: 16px;
  background: var(--dk-bg-ffffff, #fff);
  transition: transform var(--t-med) var(--ease);
}
.plan-pop:hover {
  transform: translateY(-4px);
}
.plan-pop__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: var(--dk-bg-000000, #000);
  color: var(--dk-fg-ffffff, #fff);
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  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;
  }
  .plan-pop {
    margin-block: 12px;
  }
}

/* Laptop frame around app screenshot */
.laptop {
  margin: 0;
  width: 100%;
  filter: drop-shadow(0 24px 36px var(--dk-sh-10182824, rgba(16, 24, 40, 0.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: var(--dk-bg-0f172a, #0f172a);
  border: 7px solid var(--dk-bd-0f172a, #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: var(--dk-bg-ffffff, #fff);
}
.laptop__base {
  position: relative;
  height: 14px;
  background: linear-gradient(var(--dk-bg-e4e7ec, #e4e7ec), var(--dk-bg-bfc5d0, #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: var(--dk-bg-98a2b3, #98a2b3);
  border-radius: 0 0 8px 8px;
}
