/* =============================================================================
   PRODUCTS — page-specific sections
   =============================================================================
   Requires ax-system.css (loaded first): tokens, type scale, buttons, section
   shell, hero, CTA, header/footer, motion. This file styles ONLY this page's
   sections, reusing the shared tokens and editorial registers so Products reads
   as a natural continuation of Home, Services, Industries and About.

   NOT a SaaS catalog — no cards, mockups, feature grids, metrics or tabs.
   Page-unique registers:
     prd-row        · the product editorial spread (Section 3 — the centerpiece)
     prd-principle  · the four design principles, inline weighty set (Section 4)
     prd-shaped     · who shaped them, navy-tick statement list (Section 5)
     prd-cycle      · the evolution loop, key → statement (Section 6)
   ============================================================================= */


/* =============================================================================
   SECTION 2 — WHY THESE PRODUCTS EXIST. A single editorial paragraph.
   ============================================================================= */
.prd-why { max-width: var(--ax-read); }

.prd-why__lead {
    font-family: var(--ax-font-body);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.62;
    color: var(--ax-text-2);
    margin: 0;
}


/* =============================================================================
   SECTION 3 — PRODUCTS. Each product is an editorial spread: a head
   (number · name · domain) over a four-pair body (Problem · What it solves ·
   Who it serves · Outcome). No cards, no features — hairline rules and a label
   column carry the structure.
   ============================================================================= */
.prd-list {
    border-top: 1px solid var(--ax-border);
}

.prd-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(40px, 5vw, 72px) 0;
    border-bottom: 1px solid var(--ax-border);
    /* Deep-link target (#payroll-management etc.) clears the fixed header. */
    scroll-margin-top: calc(var(--ax-header-h) + 24px);
}

/* The head column — name is the statement, domain is the quiet read. */
.prd-row__head { align-self: start; }

.prd-row__no {
    display: block;
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: 13px;
    color: var(--ax-accent-soft);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.prd-row__name {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(24px, 2.9vw, 36px);
    letter-spacing: -0.028em;
    line-height: 1.06;
    color: var(--ax-text);
    margin: 0;
    text-wrap: balance;
}

.prd-row__domain {
    display: block;
    font-family: var(--ax-font-body);
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.5;
    color: var(--ax-text-3);
    margin-top: 16px;
}

/* The body column — four labelled pairs, hairline-separated. */
.prd-row__body { margin: 0; padding: 0; }

.prd-row__pair {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0 clamp(20px, 2.4vw, 32px);
    padding: clamp(16px, 1.9vw, 22px) 0;
    border-top: 1px solid var(--ax-border-2);
    align-items: baseline;
}
.prd-row__pair:first-child { border-top: none; padding-top: 0; }
.prd-row__pair:last-child { padding-bottom: 0; }

.prd-row__label {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(12px, 1vw, 13px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ax-accent-soft);
    line-height: 1.4;
    margin: 0;
}

.prd-row__text {
    font-family: var(--ax-font-body);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.58;
    color: var(--ax-text-2);
    margin: 0;
    max-width: 52ch;
}
/* The outcome is the point of the product — let it read in near-black. */
.prd-row__pair:last-child .prd-row__text { color: var(--ax-text); }


/* =============================================================================
   SECTION 4 — COMMON PRINCIPLE. The four design intents as one weighty line —
   plain statements, no marketing.
   ============================================================================= */
.prd-principle__lead { margin-top: 20px; }

.prd-principle {
    list-style: none;
    margin: clamp(8px, 1.5vw, 16px) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2.4vw, 28px) clamp(28px, 4.5vw, 56px);
    align-items: baseline;
    max-width: 980px;
}

.prd-principle__item {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(22px, 3vw, 40px);
    letter-spacing: -0.026em;
    line-height: 1.05;
    color: var(--ax-text);
    position: relative;
}

/* A quiet navy marker between principles — discovered, not decorative. */
.prd-principle__item + .prd-principle__item::before {
    content: "";
    position: absolute;
    left: clamp(-16px, -2.25vw, -28px);
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ax-accent);
    transform: translateX(-50%);
    opacity: 0.5;
}


/* =============================================================================
   SECTION 5 — WHAT MAKES THEM DIFFERENT. Who shaped them, as a navy-tick
   statement list (distinct shape from the principle line above).
   ============================================================================= */
.prd-diff__lead { margin-top: 20px; }

.prd-shaped {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 760px;
    border-top: 1px solid var(--ax-border);
}

.prd-shaped__item {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(20px, 2.3vw, 31px);
    letter-spacing: -0.024em;
    line-height: 1.3;
    color: var(--ax-text);
    padding: clamp(20px, 2.6vw, 30px) 0 clamp(20px, 2.6vw, 30px) clamp(28px, 3vw, 44px);
    border-bottom: 1px solid var(--ax-border);
    position: relative;
    text-wrap: balance;
}

/* A small navy tick instead of a bullet. */
.prd-shaped__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(clamp(20px, 2.6vw, 30px) + 0.62em);
    width: 16px;
    height: 1.5px;
    background: var(--ax-accent);
    border-radius: 1px;
}


/* =============================================================================
   SECTION 6 — PRODUCT EVOLUTION. The loop between delivery and product, as a
   term → statement list. The navy term carries the cadence ("Every …").
   ============================================================================= */
.prd-cycle {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ax-border);
    max-width: 940px;
}

.prd-cycle__row {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
    gap: 0 clamp(28px, 4vw, 56px);
    align-items: baseline;
    padding: clamp(24px, 3vw, 38px) 0;
    border-bottom: 1px solid var(--ax-border);
}

.prd-cycle__k {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(21px, 2.3vw, 31px);
    letter-spacing: -0.024em;
    line-height: 1.1;
    color: var(--ax-accent);
    margin: 0;
    text-wrap: balance;
}

.prd-cycle__v {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.4;
    letter-spacing: -0.018em;
    color: var(--ax-text);
    margin: 0;
    max-width: 40ch;
    text-wrap: pretty;
}


/* =============================================================================
   RESPONSIVE — TABLET  ≤ 980px
   ============================================================================= */
@media (max-width: 980px) {

    /* Product spread: stack head over body */
    .prd-row { grid-template-columns: 1fr; gap: 24px; }
    .prd-row__domain { max-width: 100%; }

    /* Evolution loop: stack term over statement */
    .prd-cycle__row { grid-template-columns: 1fr; gap: 8px; }
    .prd-cycle__v { max-width: 100%; }
}


/* =============================================================================
   RESPONSIVE — MOBILE  ≤ 640px
   ============================================================================= */
@media (max-width: 640px) {

    /* Product spread: label stacks over text */
    .prd-row { padding: 36px 0; }
    .prd-row__name { font-size: clamp(24px, 8vw, 32px); }
    .prd-row__pair { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }

    /* Principle: tighter inline set */
    .prd-principle { gap: 12px 22px; }
    .prd-principle__item { font-size: clamp(22px, 8vw, 32px); }
    .prd-principle__item + .prd-principle__item::before { left: -13px; }

    /* Shaped: smaller, tighter tick list */
    .prd-shaped__item { font-size: 21px; padding-left: 26px; }

    /* Evolution loop */
    .prd-cycle__row { padding: 22px 0; }
    .prd-cycle__k { font-size: clamp(21px, 7vw, 28px); }
}
