/* Home page, refined: centered hero with a live component window, calmer sections. */

/* ---------- hero: compact, centered, a quiet galaxy behind ---------- */
.hero2 {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 52px) 0 var(--sec-y);
  background: var(--dk-bg-ffffff, #fff);
  isolation: isolate;
}
.hero2__sky {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: 760px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 95%);
  mask-image: linear-gradient(#000 45%, transparent 95%);
}
.hero2__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero2__in .eyebrow {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--dk-bg-ffffff, #fff);
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero2__in .h1 {
  max-width: 760px;
  margin-top: 14px;
}
.hero2__in .lead {
  max-width: 560px;
  margin-top: 10px;
}
.hero2__in .hero__ctas {
  justify-content: center;
  margin-top: 20px;
}
.hero2__in .compat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
}
.hero2__in .compat li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero2__in .hero__ctas .ico-logo {
  width: 18px;
  height: 18px;
}

.hero2__stage {
  width: min(100% - var(--gutter) * 2, 1200px);
  margin-top: 36px;
}

/* "Watch how Pixels helps": Overview (the film), Startups, Enterprise */
.hero2__story {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.hero2__story > span {
  margin-inline-end: 4px;
}
.hero2__story .story-chip {
  height: 32px;
  gap: 8px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--dk-bg-ffffff, #fff);
  box-shadow: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.hero2__story .story-chip:hover {
  border-color: var(--dk-bd-d4d4d8, #d4d4d8);
  background: var(--muted-bg);
  box-shadow: none;
  transform: none;
}
.hero2__story .story-chip__play {
  width: 22px;
  height: 22px;
  background: var(--ink);
}
.hero2__story .story-chip__play svg {
  width: 9px;
  height: 9px;
}
@media (max-width: 480px) {
  .hero2__story > span {
    flex-basis: 100%;
    margin: 0 0 2px;
    text-align: center;
  }
}

/* the film dialog */
.film-dlg {
  width: min(1100px, 100vw - 32px);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: #060a14;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}
.film-dlg::backdrop {
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.film-dlg__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #060a14;
}
.film-dlg__x {
  position: absolute;
  top: -44px;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.film-dlg__x:hover {
  background: rgba(255, 255, 255, 0.24);
}
.film-dlg__x:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.film-dlg__x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Pixels Motion: copy on the left, the film's motion scene on the right */
.mo-sec .mo-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.mo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.mo-sec .mo-points {
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
}
.mo-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mo-points .ico {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink);
}
.mo-copy .mo-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 1000px) {
  .mo-sec .mo-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
/* ---------- Why Pixels cards: plain soft color, no gradient or dots ---------- */
.guide.card {
  padding: 8px;
  border-radius: 16px;
  box-shadow: none;
}
.guide.card:hover {
  transform: none;
  border-color: var(--dk-bd-d4d4d8, #d4d4d8);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px -16px rgba(9, 9, 11, 0.18);
}
.guide__ill {
  height: 150px;
  border-radius: 10px;
  background: #f5f7fb;
}
:root[data-px-theme='dark'] .guide__ill {
  background: #15171c;
}
.guide__txt::before {
  color: var(--ink-3);
}

/* ---------- section rhythm ---------- */
.sec-head .h2,
.scale--center .h2 {
  max-width: none;
}
/* Arabic: picture and text sit close, no empty middle */
@media (min-width: 1001px) {
  .rtl-sec__in.rtl-sec__in--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
  }
  .rtl-sec__in--flip > .rtl-sec__msg {
    justify-self: start;
    max-width: 520px;
  }
  .rtl-sec__in--flip > .rx {
    justify-self: end;
  }
}
/* text + visual sections line up on one grid */
.integ {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
}
@media (max-width: 1000px) {
  .integ,
  .mo-sec .mo-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- Built to scale: one card, two columns, a quiet growth line on top ---------- */
.sec-head--center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.grow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--dk-bg-ffffff, #fff);
  box-shadow: var(--card-shadow);
}
.grow .grow__path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  list-style: none;
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
}
.grow__path::before {
  /* the line runs through the dots */
  content: '';
  position: absolute;
  top: 26px;
  left: calc(24px + 10%);
  right: calc(24px + 10%);
  height: 1px;
  background: var(--line);
}
.grow__path li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.grow__path li::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  background: var(--dk-bg-ffffff, #fff);
}
.grow__path li:first-child::before,
.grow__path li:last-child::before {
  border-color: var(--ink);
  background: var(--ink);
}
.grow__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grow__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
}
.grow__col + .grow__col {
  border-inline-start: 1px solid var(--line);
}
.grow .grow__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.grow__tag .ico {
  width: 16px;
  height: 16px;
}
.grow .grow__h {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.grow .grow__d {
  max-width: 460px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.grow .grow__list {
  display: grid;
  gap: 18px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.grow__list li {
  display: flex;
  gap: 14px;
}
.grow__ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--muted-bg);
  color: var(--ink);
}
.grow__ic .ico {
  width: 16px;
  height: 16px;
}
.grow .grow__list .t {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.grow .grow__list .d {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 14px;
}
.grow__col .btn {
  margin-top: auto;
}
@media (max-width: 860px) {
  .grow__cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .grow__col + .grow__col {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .grow__col {
    padding: 28px 24px;
  }
  .grow__path {
    font-size: 11px;
  }
}
@media (max-width: 560px) {
  .grow__path li:nth-child(2),
  .grow__path li:nth-child(4) {
    visibility: hidden;
  }
}

/* ---------- FAQ: short, direct answers ---------- */
.home-faq__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 80px;
  align-items: start;
}
.home-faq__side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.home-faq .home-faq__terms {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 16px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.home-faq__terms dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.home-faq__terms dd {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}
.home-faq__list {
  border-top: 1px solid var(--line);
}
.home-faq .home-faq__item {
  border-bottom: 1px solid var(--line);
}
.home-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.home-faq__item summary::-webkit-details-marker {
  display: none;
}
.home-faq__item summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 6px;
}
.home-faq__item h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.home-faq__item summary:hover h3 {
  color: var(--brand);
}
/* plus that turns into a minus when open */
.home-faq__ico {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
.home-faq__ico::before,
.home-faq__ico::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  translate: -50% -50%;
  transition: rotate 0.25s ease, opacity 0.25s;
}
.home-faq__ico::after {
  rotate: 90deg;
}
.home-faq__item[open] .home-faq__ico {
  border-color: var(--ink);
  background: var(--ink);
}
.home-faq__item[open] .home-faq__ico::before,
.home-faq__item[open] .home-faq__ico::after {
  background: var(--page-bg);
}
.home-faq__item[open] .home-faq__ico::after {
  rotate: 0deg;
  opacity: 0;
}
.home-faq .home-faq__a {
  padding: 0 56px 24px 0;
}
.home-faq__item[open] .home-faq__a {
  animation: faqIn 0.25s ease;
}
@keyframes faqIn {
  from { opacity: 0; translate: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-faq__item[open] .home-faq__a { animation: none; }
}
.home-faq .home-faq__item p,
.home-faq .home-faq__item ol {
  max-width: 720px;
  margin-top: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.home-faq .home-faq__item ol {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  padding-inline-start: 20px;
  list-style: decimal;
}
.home-faq__item a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-faq__item code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--line-soft);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (max-width: 900px) {
  .home-faq__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .home-faq__side {
    position: static;
  }
}
