:root {
  --pb-black: #000000;
  --pb-white: #ffffff;
  --pb-ink: #050505;
  --pb-muted: #717179;
  --pb-soft: #f4f4f5;
  --pb-soft-2: #f8f8f9;
  --pb-border: #dedee3;
  --pb-brand: #6673dc;
  --pb-brand-hover: #5a66cc;
  --pb-positive: #22c55e;
  --pb-negative: #ff454b;
  --pb-dark-card: #282828;
  --pb-dark-muted: #a7a7ad;
  --pb-warning: #f5d400;
  --pb-chart: #667df0;
  --pb-page: #fbfbfc;
  --pb-grid: rgba(10, 10, 12, 0.018);
  --max: 1440px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--pb-ink);
  background-color: var(--pb-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 252, 0.92);
  border-bottom: 1px solid rgba(222, 222, 227, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.03);
}

.header-main {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 950;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--pb-white);
  background: var(--pb-black);
  font-size: 15px;
  font-weight: 950;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #34343a;
  font-size: 17px;
  font-weight: 780;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--pb-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  border: 0;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #25252a;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.btn {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.ghost-link:focus-visible,
.site-nav a:focus-visible,
.strategy-board a:focus-visible,
.auth-close:focus-visible,
.help-tabs button:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.34);
  outline-offset: 3px;
}

.btn-dark {
  color: var(--pb-white);
  background: var(--pb-black);
}

.btn-soft {
  color: var(--pb-black);
  background: var(--pb-soft);
}

.btn-light {
  color: var(--pb-black);
  background: var(--pb-white);
}

.btn-outline-light {
  color: var(--pb-white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-xl {
  min-height: 64px;
  padding: 0 34px;
  font-size: 20px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--pb-soft);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: var(--pb-black);
}

.hero {
  position: relative;
  max-width: var(--max);
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: 64px 56px 84px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 0.88fr);
  gap: 54px;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.interactive-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: var(--hero-x, 62%);
  top: var(--hero-y, 42%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.13), rgba(102, 115, 220, 0.1) 42%, transparent 68%);
  filter: blur(8px);
  opacity: 0.9;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: -1;
}

.hero-copy,
.hero-console {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(36px, 3.9vw, 54px);
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #15542d;
  background: #f0fbf3;
  font-size: 15px;
  font-weight: 950;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: #3f3f45;
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-console {
  border-radius: 32px;
  overflow: hidden;
  color: var(--pb-white);
  background: #101013;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--console-lift, 0));
  transform-style: preserve-3d;
  transition: transform 160ms ease, box-shadow 200ms ease;
  animation: consoleAura 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes consoleAura {
  0%,
  100% {
    box-shadow: 0 30px 110px rgba(0, 0, 0, 0.24);
  }
  50% {
    box-shadow: 0 34px 120px rgba(34, 197, 94, 0.11);
  }
}

.console-top {
  min-height: 58px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(90deg, #6673dc, #7a4ab0);
}

.console-lights {
  display: flex;
  gap: 7px;
}

.console-lights i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.console-top strong {
  font-size: 16px;
  font-weight: 950;
}

.console-top span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--pb-black);
  background: var(--pb-positive);
  font-size: 13px;
  font-weight: 950;
}

.console-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 510px;
}

.console-side {
  padding: 18px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #18181b;
}

.console-side b {
  margin-bottom: 10px;
  font-size: 15px;
}

.console-side span {
  padding: 10px 12px;
  border-radius: 12px;
  color: #bebec5;
  font-size: 13px;
  font-weight: 850;
}

.console-side .active {
  color: var(--pb-white);
  background: rgba(102, 115, 220, 0.45);
}

.console-main {
  padding: 18px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    #111114;
  background-size: 22px 22px;
}

.console-hero-card,
.console-metrics div,
.license-table,
.robot-mini {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: rgba(40, 40, 40, 0.94);
}

.console-hero-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 18px;
  align-items: end;
}

.console-hero-card span,
.console-hero-card small,
.console-metrics span,
.license-table span,
.robot-mini span,
.robot-mini small {
  color: var(--pb-dark-muted);
  font-size: 13px;
  font-weight: 800;
}

.console-hero-card strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--pb-positive);
  font-size: 58px;
  line-height: 1;
  font-weight: 950;
}

.pulse-chart {
  height: 120px;
  padding: 12px;
  border-radius: 20px;
  display: flex;
  align-items: end;
  gap: 9px;
  background: #18181b;
}

.pulse-chart i {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--pb-positive), var(--pb-brand));
  animation: pulseBars 1.8s ease-in-out infinite alternate;
}

.pulse-chart i:nth-child(2n) {
  animation-delay: 260ms;
}

@keyframes pulseBars {
  from {
    filter: brightness(0.82);
    transform: scaleY(0.82);
  }
  to {
    filter: brightness(1.15);
    transform: scaleY(1);
  }
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.console-metrics div {
  padding: 16px;
}

.console-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 950;
}

.console-split {
  display: grid;
  grid-template-columns: 1fr 0.64fr;
  gap: 12px;
}

.license-table {
  overflow: hidden;
}

.license-table > div {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.55fr;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.license-table > div:last-child {
  border-bottom: 0;
}

.license-table .table-head {
  background: rgba(255, 255, 255, 0.05);
}

.license-table b {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--pb-black);
  background: var(--pb-positive);
  font-size: 12px;
  white-space: nowrap;
}

.robot-mini {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.robot-mini strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--pb-white);
  font-size: 26px;
  line-height: 1.1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 56px;
}

.products-section {
  padding-bottom: 44px;
}

.products-section + .auth-section {
  padding-top: 64px;
}

.section-head {
  max-width: 1040px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head:has(.product-title-nowrap) {
  max-width: none;
  text-align: center;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.product-title-nowrap {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 2.85vw, 40px);
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.section-head p,
.dark-copy p,
.final-cta p {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: #55555d;
  font-size: 18px;
  line-height: 1.66;
  font-weight: 650;
}

.eyebrow-line {
  margin-bottom: 12px;
  color: #16161a !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-weight: 950 !important;
}

.product-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border: 1px solid var(--pb-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f2f3ff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 28px 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--pb-positive);
  opacity: 0.72;
}

.product-card:nth-child(2) {
  background: #f3fbf5;
  border-color: rgba(34, 197, 94, 0.24);
}

.product-label {
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  color: var(--pb-positive);
  background: var(--pb-black);
  font-size: 14px;
  font-weight: 950;
}

.product-card:hover,
.auth-grid article:hover,
.price-plan:hover,
.article-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-card-top,
.strategy-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.product-card-top span,
.strategy-top span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--pb-white);
  background: var(--pb-brand);
  font-size: 14px;
  font-weight: 950;
}

.product-card-top b,
.strategy-top b {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--pb-black);
  background: var(--pb-positive);
  font-size: 14px;
  font-weight: 950;
}

h3 {
  margin-bottom: 15px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 950;
}

.product-card p,
.auth-grid p,
.strategy-board p,
.pricing-grid p,
.article-grid p,
.site-footer p {
  color: var(--pb-muted);
  font-size: 16px;
  line-height: 1.66;
  font-weight: 650;
}

.product-card ul,
.pricing-grid ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.product-card li,
.pricing-grid li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  color: #35353c;
  font-weight: 820;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.auth-grid article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--pb-soft);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.auth-grid article:hover {
  border-color: rgba(34, 197, 94, 0.24);
}

.auth-grid article > span {
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--pb-positive);
  background: var(--pb-black);
  font-weight: 950;
}

.compare-section {
  max-width: none;
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    var(--pb-soft-2);
  background-size: 96px 96px;
  background-position: center top;
}

.compare-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--pb-border);
  border-radius: 30px;
  background: var(--pb-white);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.18fr;
}

.compare-row > div {
  padding: 22px 24px;
  border-bottom: 1px solid var(--pb-border);
  color: #3d3d42;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 740;
}

.compare-row > div + div {
  border-left: 1px solid var(--pb-border);
}

.compare-row.head > div {
  color: var(--pb-black);
  background: #eceefe;
  font-weight: 950;
}

.compare-row:last-child > div {
  border-bottom: 0;
}

.dark-section,
.final-cta,
.site-footer {
  color: var(--pb-white);
  background: var(--pb-black);
}

.dark-section {
  position: relative;
  overflow: hidden;
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 197, 94, 0.1), transparent 32%),
    radial-gradient(circle at 82% 74%, rgba(102, 115, 220, 0.18), transparent 34%);
  pointer-events: none;
}

.dark-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.dark-copy {
  text-align: center;
}

.dark-copy h2,
.final-cta h2 {
  color: var(--pb-white);
}

.market-title {
  font-size: clamp(30px, 3.3vw, 48px);
}

.dark-copy p,
.final-cta p {
  color: var(--pb-dark-muted);
}

.strategy-board {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.strategy-board.two-only {
  grid-template-columns: repeat(2, 1fr);
}

.strategy-board article {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(40, 40, 40, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.strategy-board article:hover {
  background: #303033;
  border-color: rgba(34, 197, 94, 0.34);
  transform: translateY(-4px);
}

.strategy-board h3 {
  margin: 18px 0;
  color: var(--pb-white);
}

.strategy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.strategy-stats div {
  padding: 15px;
  border-radius: 18px;
  background: #1d1d1f;
}

.strategy-stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--pb-dark-muted);
  font-size: 13px;
  font-weight: 800;
}

.strategy-stats strong {
  color: var(--pb-positive);
  font-size: 21px;
  font-weight: 950;
}

.strategy-board a {
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  color: var(--pb-black);
  background: var(--pb-white);
  font: inherit;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.strategy-board a:hover {
  transform: translateY(-2px);
  background: #dff7e7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag-cloud span {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--pb-black);
  background: var(--pb-soft);
  font-size: 16px;
  font-weight: 900;
}

.pricing-section {
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 251, 252, 0.92) 0%, #eef1ff 100%);
  background-size: 96px 96px, 96px 96px, auto;
  background-position: center top;
  transition: background 260ms ease;
}

.pricing-section.pricing-bg-ea {
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 251, 252, 0.92) 0%, #eef1ff 100%);
  background-size: 96px 96px, 96px 96px, auto;
  background-position: center top;
}

.pricing-section.pricing-bg-cloud {
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 251, 252, 0.92) 0%, #f1fbf4 100%);
  background-size: 96px 96px, 96px 96px, auto;
  background-position: center top;
}

.pricing-section.pricing-bg-enterprise {
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 251, 252, 0.92) 0%, #f4ecff 100%);
  background-size: 96px 96px, 96px 96px, auto;
  background-position: center top;
}

.help-tabs {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 6px;
  border-radius: 999px;
  display: flex;
  gap: 6px;
  background: var(--pb-soft);
}

.help-tabs button {
  min-width: 118px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #333338;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.help-tabs button.active {
  color: var(--pb-white);
  background: var(--pb-black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-plan {
  position: relative;
  min-height: 470px;
  padding: 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  background: var(--pb-soft);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.price-plan.selected {
  border-color: var(--pb-brand);
  background: #eceefe;
  box-shadow: 0 24px 78px rgba(102, 115, 220, 0.2);
}

.price-plan[data-plan="ea"].selected {
  border-color: var(--pb-brand);
  background: #eceefe;
}

.price-plan[data-plan="cloud"].selected {
  border-color: rgba(34, 197, 94, 0.58);
  background: #f1fbf4;
  box-shadow: 0 22px 68px rgba(34, 197, 94, 0.12);
}

.price-plan[data-plan="enterprise"].selected {
  border-color: #7a4ab0;
  background: #f4ecff;
  box-shadow: 0 24px 78px rgba(122, 74, 176, 0.18);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: -14px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--pb-white);
  border: 2px solid var(--pb-white);
  background: linear-gradient(135deg, #ff2d2d, #dc2626 55%, #991b1b);
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.36);
  transform: rotate(7deg);
  animation: badgePop 1.8s ease-in-out infinite;
}

@keyframes badgePop {
  0%,
  100% {
    transform: rotate(7deg) scale(1);
  }
  50% {
    transform: rotate(7deg) scale(1.07);
  }
}

.price-line {
  min-height: 78px;
  margin: 18px 0 10px;
}

.price-line del,
.price-line span {
  min-height: 21px;
  display: block;
  color: var(--pb-muted);
  font-weight: 800;
}

.price-line strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 950;
}

.price-plan.selected .choose-plan {
  color: var(--pb-positive);
}

.pricing-grid .btn {
  margin-top: auto;
}

.price-plan .choose-plan {
  pointer-events: auto;
}

.partners-section {
  padding-top: 86px;
  padding-bottom: 94px;
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    #f8f8f9;
  background-size: 96px 96px;
  background-position: center top;
}

.partners-head {
  margin-bottom: 42px;
}

.partners-head h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  font-size: clamp(34px, 3.1vw, 46px);
}

.partners-head h2::after {
  content: "";
  width: 72px;
  height: 4px;
  border-radius: 999px;
  position: absolute;
  left: 50%;
  bottom: -16px;
  background: var(--pb-positive);
  transform: translateX(-50%);
}

.partners-grid {
  max-width: 980px;
  min-height: 300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  grid-template-rows: repeat(2, 138px);
  gap: 18px 4px;
  align-items: center;
  justify-items: center;
}

.partner-card {
  width: 136px;
  height: 136px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--pb-white);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.partner-card:nth-child(1) { grid-column: 1 / span 1; grid-row: 1; }
.partner-card:nth-child(2) { grid-column: 3 / span 1; grid-row: 1; }
.partner-card:nth-child(3) { grid-column: 5 / span 1; grid-row: 1; }
.partner-card:nth-child(4) { grid-column: 7 / span 1; grid-row: 1; }
.partner-card:nth-child(5) { grid-column: 2 / span 1; grid-row: 2; }
.partner-card:nth-child(6) { grid-column: 4 / span 1; grid-row: 2; }
.partner-card:nth-child(7) { grid-column: 6 / span 1; grid-row: 2; }

.partner-card:hover {
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.partner-card img {
  max-width: 100%;
  max-height: 88px;
  display: block;
  object-fit: contain;
}

.partners-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  background: var(--pb-white);
  color: var(--pb-muted);
  text-align: center;
  font-weight: 800;
}

.help-section {
  background:
    linear-gradient(var(--pb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pb-grid) 1px, transparent 1px),
    var(--pb-soft-2);
  background-size: 96px 96px;
  background-position: center top;
}

.help-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 56px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.article-grid.hidden {
  display: none;
}

.article-grid article {
  min-height: 300px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  background: var(--pb-white);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.article-grid article[role="button"] {
  cursor: pointer;
}

.article-grid article:hover {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.article-thumb {
  height: 132px;
  margin-bottom: 20px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background-image: url("assets/help-center-thumbnails.png");
  background-size: 400% 300%;
  background-repeat: no-repeat;
  background-color: #111114;
}

.article-thumb.has-image {
  background-image: none;
  background-color: #e8e8eb;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-thumb::before {
  content: none;
}

.article-thumb::after {
  content: none;
}

.thumb-price,
.thumb-stats,
.thumb-market,
.thumb-enterprise,
.thumb-files,
.thumb-expire {
  background-image: url("assets/help-center-thumbnails.png");
}

.thumb-price { background-position: 0% 0%; }
.thumb-stats { background-position: 33.333% 0%; }
.thumb-market { background-position: 66.666% 0%; }
.thumb-enterprise { background-position: 100% 0%; }
.thumb-files { background-position: 0% 50%; }
.thumb-expire { background-position: 33.333% 50%; }

.article-grid h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.32;
}

.news-card-meta {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-card-meta time {
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 750;
}

.news-card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.news-card em {
  margin-top: auto;
  display: inline-flex;
  color: var(--pb-black);
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
}

.news-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 54px 24px;
  border-radius: var(--radius-lg);
  background: var(--pb-white);
  color: var(--pb-muted);
  text-align: center;
  font-weight: 800;
}

.news-error {
  color: #a43b3b;
}

.news-pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.news-pagination.hidden {
  display: none;
}

.news-page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.news-pagination button {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: var(--pb-black);
  background: var(--pb-white);
  font-weight: 850;
  cursor: pointer;
}

.news-page-numbers button {
  padding: 0;
}

.news-pagination button:hover:not(:disabled),
.news-pagination button.active {
  border-color: var(--pb-black);
  color: var(--pb-white);
  background: var(--pb-black);
}

.news-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.extra-article {
  display: none;
}

.article-grid.show-extra .extra-article {
  display: block;
}

.faq-accordion {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-accordion.hidden {
  display: none;
}

.faq-accordion details {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 22px;
  background: var(--pb-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.faq-accordion summary {
  min-height: 68px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  color: var(--pb-black);
  font-size: 19px;
  font-weight: 950;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--pb-soft);
  font-size: 22px;
  line-height: 1;
}

.faq-accordion details[open] summary::after {
  content: "-";
}

.faq-accordion p {
  margin: 0;
  padding: 0 26px 22px;
  color: var(--pb-muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
}

.faq-accordion .extra-article {
  display: none;
}

.faq-accordion.show-extra .extra-article {
  display: block;
}

.center-action {
  margin-top: 32px;
  text-align: center;
}

.center-action .hidden {
  display: none;
}

.final-cta {
  max-width: none;
  margin: 0;
  padding: 98px max(56px, calc((100vw - var(--max)) / 2 + 56px));
  text-align: center;
}

.final-cta h2 {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .product-title-nowrap {
  max-width: none;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.risk {
  max-width: 1040px;
  margin: 12px auto 0;
  font-size: 15px !important;
}

.site-footer {
  border-top: 1px solid #242426;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 56px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer h3 {
  margin-bottom: 18px;
  color: var(--pb-white);
  font-size: 18px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 12px;
  color: var(--pb-dark-muted);
  font-size: 16px;
  font-weight: 720;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 56px 28px;
  border-top: 1px solid #242426;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.footer-bottom span:last-child {
  max-width: none;
  justify-self: end;
  color: var(--pb-dark-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  place-items: center;
  padding: 24px;
}

.news-modal.open {
  display: grid;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(12px);
}

.news-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: var(--pb-white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.news-dialog .article-thumb {
  height: 260px;
  margin-bottom: 22px;
}

.news-dialog time {
  color: var(--pb-muted);
  font-size: 14px;
  font-weight: 750;
}

.news-dialog h2 {
  margin: 10px 40px 18px 0;
  font-size: clamp(24px, 2.8vw, 25px);
  line-height: 1.18;
}

.news-dialog-content {
  color: var(--pb-muted);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 650;
}

.auth-modal.open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 34px;
  border-radius: var(--radius-lg);
  color: var(--pb-black);
  background: var(--pb-white);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.32);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--pb-soft);
  color: var(--pb-black);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover {
  background: #eefbf2;
}

.auth-intro span {
  color: var(--pb-brand);
  font-size: 14px;
  font-weight: 950;
}

.auth-intro h2 {
  margin: 8px 0 12px;
  font-size: 44px;
}

.auth-intro p {
  margin-bottom: 22px;
  color: var(--pb-muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}

.auth-tabs {
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--pb-soft);
}

.auth-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pb-black);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--pb-positive);
  background: var(--pb-black);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #333338;
  font-weight: 850;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--pb-border);
  border-radius: 16px;
  background: var(--pb-soft-2);
  color: var(--pb-black);
  font: inherit;
  font-weight: 720;
}

.auth-form .btn {
  width: 100%;
}

@media (max-width: 1180px) {
  .product-title-nowrap {
    font-size: clamp(28px, 3vw, 36px);
  }

  .header-main {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.open .site-nav,
  .site-header.open .header-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    padding-bottom: 14px;
  }

  .site-header.open .site-nav {
    flex-wrap: wrap;
    padding-top: 4px;
  }

  .hero,
  .dark-inner,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-console {
    max-width: 760px;
    justify-self: center;
  }

  .auth-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: auto;
    gap: 18px;
  }

  .partner-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .header-main,
  .hero,
  .section,
  .dark-inner,
  .help-inner,
  .final-cta,
  .footer-grid,
  .footer-bottom {
    padding-left: 22px;
    padding-right: 22px;
  }

  .header-main {
    min-height: 72px;
  }

  h1 {
    font-size: 43px;
    line-height: 1.05;
  }

  .hero-title {
    font-size: 38px;
  }

  h2 {
    font-size: 36px;
  }

  .market-title {
    font-size: 32px;
  }

  .product-title-nowrap {
    white-space: normal;
  }

  .hero-lede,
  .section-head p,
  .dark-copy p,
  .final-cta p {
    font-size: 18px;
  }

  .hero-actions {
    margin-bottom: 0;
  }

  .product-matrix,
  .auth-grid,
  .pricing-grid,
  .article-grid,
  .partners-grid,
  .strategy-board.two-only,
  .footer-grid,
  .console-split {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    max-width: 460px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .section,
  .help-inner,
  .dark-inner,
  .final-cta {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .product-card,
  .price-plan {
    min-height: auto;
  }

  .console-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .console-side {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .console-side b {
    display: none;
  }

  .console-hero-card,
  .console-metrics,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .console-hero-card strong {
    font-size: 48px;
  }

  .compare-row > div + div {
    border-left: 0;
  }

  .compare-row > div:first-child {
    background: #f1f1f3;
  }

  .strategy-stats {
    grid-template-columns: 1fr;
  }

  .final-actions {
    justify-content: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-bottom span:last-child {
    justify-self: start;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 520px) {
  .btn,
  .btn-xl {
    width: 100%;
    min-height: 58px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 17px;
  }

  .site-header.open .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    width: 100%;
  }

  h1 {
    font-size: 36px;
  }

  .hero-title {
    font-size: 32px;
  }

  h2 {
    font-size: 31px;
    line-height: 1.08;
  }

  .market-title {
    font-size: 28px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-console {
    border-radius: 26px;
  }

  .hero-kicker {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .console-top {
    grid-template-columns: auto 1fr;
  }

  .console-top span {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .console-main {
    padding: 10px;
    gap: 10px;
  }

  .console-hero-card,
  .console-metrics div,
  .license-table,
  .robot-mini {
    border-radius: 18px;
  }

  .console-metrics {
    grid-template-columns: 1fr;
  }

  .license-table {
    overflow-x: auto;
  }

  .license-table > div {
    min-width: 420px;
  }

  .product-card,
  .auth-grid article,
  .price-plan {
    padding: 24px;
    border-radius: 22px;
  }

  .strategy-board article,
  .article-grid article {
    border-radius: 22px;
  }

  .strategy-stats {
    gap: 8px;
  }

  .price-line strong {
    font-size: 32px;
  }

  .help-tabs {
    width: 100%;
  }

  .help-tabs button {
    flex: 1;
    min-width: 0;
  }

  .tag-cloud span {
    width: 100%;
    justify-content: center;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-dialog {
    padding: 26px 18px 22px;
    border-radius: 24px;
  }

  .auth-intro h2 {
    font-size: 34px;
  }
}
