/* Inventory IQ product page; loads after style.css */

@layer components {
  .product-id {
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-width: 0;
    margin-right: auto;
  }

  .product-id .product-name {
    font-family: "Archivo", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 2.6vw, 18px);
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
  }

  .product-id .by {
    font-size: 12.5px;
    color: var(--ink-soft);
    white-space: nowrap;
  }

  .product-id .by a {
    color: var(--ink-soft);
  }

  .product-hero {
    padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 84px);
  }

  .product-hero h1 {
    max-width: 18ch;
  }

  .product-hero .lede {
    max-width: 50ch;
  }

  .product-hero .aside {
    align-self: center;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: clamp(24px, 3vw, 40px);
    margin: clamp(32px, 4vw, 48px) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
  }

  .steps li {
    counter-increment: step;
    padding-top: 16px;
    border-top: var(--stroke-strong) solid var(--rule-strong);
  }

  .steps li::before {
    content: "Step " counter(step);
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-ink);
  }

  .steps h3 {
    margin: 0 0 8px;
  }

  .steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
  }

  .feature {
    margin-top: clamp(48px, 6vw, 80px);
    align-items: center;
  }

  .feature:first-of-type {
    margin-top: clamp(34px, 4vw, 52px);
  }

  .feature > .lead {
    flex: 2 1 20rem;
  }

  .feature > .aside {
    flex: 3 1 26rem;
  }

  .feature:nth-of-type(even) {
    flex-direction: row-reverse;
  }

  /* a list feature has no screenshot, so text keeps the wide column */
  .feature.feature-list {
    align-items: start;
  }

  .feature.feature-list > .lead {
    flex: 3 1 26rem;
  }

  .feature.feature-list > .aside {
    flex: 2 1 19rem;
  }

  .feature-list .audience {
    grid-template-columns: 1fr;
    margin-top: 0;
    max-width: none;
  }

  .feature-list .audience li:first-child {
    border-top: var(--stroke) solid var(--rule);
  }

  .feature h3 {
    font-size: clamp(20px, 2.2vw, 26px);
  }

  .feature p {
    color: var(--ink-soft);
    margin: 14px 0 0;
    max-width: 44ch;
  }

  .faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    gap: clamp(24px, 3vw, 40px);
    margin: clamp(32px, 4vw, 48px) 0 0;
  }

  .faq > div {
    padding-top: 16px;
    border-top: var(--stroke) solid var(--rule);
  }

  .faq h3 {
    margin: 0 0 8px;
    font-size: clamp(17px, 1.8vw, 19px);
  }

  .faq p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
  }
}
