/* Public product introductions. Shares the landing page's type and color system. */
.product-page {
  --product-gap: clamp(32px, 5vw, 80px);
}

.product-page .button,
.product-page .text-link,
.product-page .desktop-nav a,
.product-page .footer nav {
  font-size: 14px;
}

.product-page .eyebrow {
  color: var(--lime);
  font-size: 12px;
}

.product-breadcrumb {
  padding-top: 32px;
}

.product-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.product-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.product-breadcrumb li + li::before {
  content: '/';
  color: #72806f;
}

.product-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.product-breadcrumb a:hover {
  color: var(--lime);
}

.product-breadcrumb [aria-current='page'] {
  color: var(--ink);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--product-gap);
  padding-block: 72px 112px;
}

.product-hero-copy {
  min-width: 0;
}

.product-hero h1 {
  max-width: 12ch;
  font-size: clamp(48px, 5.3vw, 78px);
  line-height: 1.04;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.product-lede {
  max-width: 49ch;
  margin-top: 28px;
  color: #b8c0b5;
  font-size: 18px;
  line-height: 1.8;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.product-hero-actions .button {
  gap: 24px;
}

.product-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid #46523e;
  border-radius: 8px;
  background: #161c15;
  isolation: isolate;
  overflow: hidden;
}

.product-visual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  color: #c4cebf;
  font: 12px/1.5 var(--mono);
}

.product-visual-bar > :first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.product-visual-bar > :first-child::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.product-visual-bar > :last-child:not(:first-child) {
  color: var(--muted);
}

.product-visual-label {
  color: var(--muted);
}

.product-visual-title {
  padding: 28px 28px 0;
}

.product-page .product-visual-title {
  max-width: none;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.product-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  min-height: 320px;
  padding: 48px 28px;
  background-image: radial-gradient(#41503a 1px, transparent 1px);
  background-size: 20px 20px;
}

.product-flow::before {
  content: '';
  position: absolute;
  inset-inline: 15%;
  top: 50%;
  height: 1px;
  background: #8aa676;
  transform: rotate(14deg);
}

.product-flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  min-height: 132px;
  padding: 20px 16px;
  border: 1px solid #596a4c;
  border-radius: 5px;
  background: var(--bg);
}

.product-flow-node:first-child {
  transform: translateY(-32px);
}

.product-flow-node:last-child {
  transform: translateY(32px);
  border-color: var(--lime);
  background: #22301b;
}

.product-flow-node .number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font: 13px/1 var(--mono);
}

.product-flow-node .number::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .35;
  animation: product-node-signal 2s ease-in-out 2;
}

.product-flow-node:nth-child(2) .number::after {
  animation-delay: .2s;
}

.product-flow-node:nth-child(3) .number::after {
  animation-delay: .4s;
}

.product-flow-node strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-visual-caption {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  color: #b4c0ad;
  font-size: 14px;
  line-height: 1.7;
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--product-gap);
  padding-block: 56px;
  border-block: 1px solid var(--line);
}

.product-page h2 {
  max-width: 18ch;
  font-size: clamp(32px, 3.4vw, 48px);
  text-wrap: balance;
}

.product-intro > p,
.product-intro > div > p:not(.eyebrow) {
  max-width: 60ch;
  color: #b8c0b5;
  font-size: 18px;
  line-height: 1.8;
}

.product-intro > div > p + p {
  margin-top: 20px;
}

.product-features {
  padding-block: 104px;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.product-feature-grid article {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid #4d5b44;
}

.product-feature-index {
  display: block;
  margin-bottom: 32px;
  color: var(--lime);
  font: 13px/1 var(--mono);
}

.product-feature-grid h3 {
  max-width: 22ch;
  font-size: 26px;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.product-feature-grid p {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.product-workflow {
  padding-block: 80px;
  background: #1b2218;
  border-block: 1px solid var(--line);
}

.product-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 0;
  margin: 48px 0 0;
  list-style: none;
}

.product-steps li {
  position: relative;
  min-width: 0;
}

.product-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  inset-inline-start: 64px;
  inset-inline-end: -16px;
  height: 1px;
  background: #526447;
}

.product-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid #74915f;
  border-radius: 50%;
  color: var(--lime);
  font: 14px/1 var(--mono);
}

.product-steps h3 {
  max-width: 22ch;
  font-size: 24px;
  letter-spacing: -.03em;
  line-height: 1.3;
}

.product-steps p {
  max-width: 43ch;
  margin-top: 16px;
  color: #b6c0af;
  font-size: 16px;
  line-height: 1.8;
}

.product-related {
  padding-block: 104px 64px;
}

.product-related > p:not(.eyebrow) {
  max-width: 65ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.product-related-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.product-related-grid a:hover {
  transform: translateY(-4px);
  border-color: #849972;
  background: #222b1d;
}

.product-related-grid strong {
  display: block;
  font: 500 24px/1.3 var(--display);
  letter-spacing: -.025em;
}

.product-related-grid p {
  max-width: 40ch;
  margin-block: 16px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.product-related-grid a > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: auto;
  color: var(--lime);
  font-size: 14px;
}

.product-directory {
  padding-bottom: 80px;
}

.product-directory details {
  border-block: 1px solid var(--line);
}

.product-directory summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding-block: 20px;
  color: #c6d0c0;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.product-directory summary::-webkit-details-marker {
  display: none;
}

.product-directory summary::after {
  content: '+';
  flex: none;
  color: var(--lime);
  font: 300 30px/1 var(--display);
}

.product-directory details[open] summary::after {
  content: '−';
}

.product-directory summary:hover {
  color: var(--lime);
}

.product-directory summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 6px;
}

.product-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 24px;
  padding-bottom: 28px;
}

.product-directory-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-directory-grid a:hover {
  color: var(--lime);
  background: var(--surface);
}

.product-directory-grid a[aria-current='page'] {
  color: var(--lime);
  background: #253020;
}

.product-directory-grid a[aria-current='page']::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.product-cta {
  padding-block: 72px;
  background: var(--lime);
  color: var(--dark);
}

.product-cta > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 64px;
}

.product-cta h2 {
  max-width: 22ch;
}

.product-cta p {
  max-width: 58ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.8;
}

.product-cta .eyebrow {
  margin-top: 0;
  color: #425536;
}

.product-cta .button {
  background: var(--dark);
  color: var(--lime);
  border-color: var(--dark);
}

.product-cta .button:hover {
  background: #2b3b22;
}

.product-cta .text-link:hover {
  color: #355020;
}

.product-cta a:focus-visible {
  outline-color: var(--dark);
}

.product-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@keyframes product-node-signal {
  0%, 60%, 100% { opacity: .35; transform: scale(.8); }
  20%, 40% { opacity: 1; transform: scale(1.25); }
}

html[dir='rtl'] .product-flow::before {
  transform: rotate(-14deg);
}

html[lang='fa'] .product-hero h1 {
  max-width: 14ch;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.4;
  letter-spacing: -.02em;
}

html[lang='fa'] .product-page h2,
html[lang='fa'] .product-page h3,
html[lang='fa'] .product-related-grid strong {
  letter-spacing: 0;
  line-height: 1.55;
}

html[lang='fa'] .product-flow-node strong {
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .product-hero {
    gap: 40px;
  }
  .product-flow {
    gap: 12px;
    padding-inline: 20px;
  }
  .product-flow-node {
    padding-inline: 12px;
  }
  .product-feature-grid,
  .product-steps {
    gap: 28px;
  }
  .product-related-grid a {
    padding: 24px;
  }
}

@media (max-width: 960px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 48px 72px;
  }
  .product-hero h1 {
    max-width: 16ch;
    font-size: clamp(52px, 8vw, 76px);
  }
  .product-lede {
    max-width: 58ch;
  }
  .product-visual {
    width: 100%;
    max-width: 720px;
    justify-self: end;
  }
  .product-flow {
    gap: 36px;
    min-height: 280px;
    padding-inline: 40px;
  }
  .product-flow::before {
    transform: rotate(10deg);
  }
  html[dir='rtl'] .product-flow::before {
    transform: rotate(-10deg);
  }
  .product-flow-node {
    padding: 20px;
  }
  .product-intro {
    gap: 40px;
  }
  .product-feature-grid,
  .product-related-grid {
    gap: 24px;
  }
  .product-feature-grid h3 {
    font-size: 23px;
  }
  .product-related-grid strong {
    font-size: 21px;
  }
  .product-related-grid a {
    padding: 20px;
  }
  .product-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
  }
  .product-cta > .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .product-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
  }
  html[lang='fa'] .product-hero h1 {
    max-width: 18ch;
    font-size: clamp(44px, 7vw, 62px);
  }
}

@media (max-width: 700px) {
  .product-page .nav-actions {
    gap: 12px;
  }
  .product-breadcrumb {
    padding-top: 20px;
  }
  .product-breadcrumb ol {
    gap: 4px 10px;
    font-size: 12px;
  }
  .product-breadcrumb li {
    gap: 10px;
  }
  .product-hero {
    gap: 40px;
    padding-block: 40px 64px;
  }
  .product-hero h1 {
    max-width: 14ch;
    font-size: clamp(42px, 10vw, 64px);
    letter-spacing: -.055em;
  }
  .product-page .eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
  }
  .product-lede {
    margin-top: 24px;
    font-size: 17px;
  }
  .product-hero-actions {
    margin-top: 28px;
    gap: 12px 20px;
  }
  .product-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: 32px 24px;
  }
  .product-flow::before,
  html[dir='rtl'] .product-flow::before {
    top: 48px;
    bottom: 48px;
    inset-inline-start: 44px;
    inset-inline-end: auto;
    width: 1px;
    height: auto;
    transform: none;
  }
  .product-flow-node,
  .product-flow-node:first-child,
  .product-flow-node:last-child {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-height: 76px;
    padding: 20px;
    transform: none;
  }
  .product-flow-node .number {
    flex: none;
  }
  .product-flow-node strong {
    font-size: 17px;
  }
  .product-visual-bar,
  .product-visual-caption {
    padding: 16px 20px;
  }
  .product-visual-title {
    padding: 24px 20px 0;
  }
  .product-page .product-visual-title,
  html[lang='fa'] .product-page .product-visual-title {
    font-size: 22px;
  }
  .product-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 40px;
  }
  .product-page h2 {
    max-width: 20ch;
    font-size: 34px;
  }
  .product-intro > p,
  .product-intro > div > p:not(.eyebrow) {
    font-size: 17px;
  }
  .product-features {
    padding-block: 64px;
  }
  .product-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 36px;
  }
  .product-feature-grid article {
    padding-top: 24px;
  }
  .product-feature-index {
    margin-bottom: 20px;
  }
  .product-feature-grid h3 {
    max-width: none;
    font-size: 26px;
  }
  .product-feature-grid p {
    max-width: 62ch;
    margin-top: 16px;
  }
  .product-workflow {
    padding-block: 56px;
  }
  .product-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 36px;
  }
  .product-steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
  }
  .product-steps li:not(:last-child)::after {
    top: 56px;
    bottom: -20px;
    inset-inline-start: 22px;
    inset-inline-end: auto;
    width: 1px;
    height: auto;
  }
  .product-step-number {
    margin-bottom: 0;
  }
  .product-steps h3 {
    max-width: none;
    padding-top: 6px;
    font-size: 24px;
  }
  .product-steps p {
    max-width: 58ch;
    margin-top: 12px;
  }
  .product-related {
    padding-block: 64px 48px;
  }
  .product-related > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 16px;
  }
  .product-related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 28px;
  }
  .product-related-grid a {
    padding: 24px;
  }
  .product-related-grid strong {
    font-size: 25px;
  }
  .product-related-grid p {
    max-width: 58ch;
    font-size: 16px;
  }
  .product-directory {
    padding-bottom: 56px;
  }
  .product-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }
  .product-directory-grid a {
    padding-inline: 12px;
  }
  .product-cta {
    padding-block: 48px;
  }
  .product-cta p {
    font-size: 16px;
  }
  html[lang='fa'] .product-hero h1 {
    font-size: clamp(38px, 8.5vw, 52px);
  }
  html[lang='fa'] .product-page h2 {
    font-size: 31px;
  }
}

@media (max-width: 380px) {
  .product-page .nav-actions {
    gap: 8px;
  }
  .product-flow {
    padding-inline: 16px;
  }
  .product-flow-node {
    padding-inline: 16px;
    gap: 16px;
  }
  .product-flow::before,
  html[dir='rtl'] .product-flow::before {
    inset-inline-start: 32px;
  }
  .product-steps li {
    gap: 16px;
  }
  .product-directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-flow-node .number::after {
    animation: none;
    opacity: 1;
  }
  .product-related-grid a {
    transition: none;
  }
  .product-related-grid a:hover {
    transform: none;
  }
}
