/* Phoenix AI Solutions · kinds.css
   Page styles for /apps/ and the three kind pages (/marketing-tools/, /operations-tools/, /team-tools/).
   Uses site.css classes first; everything here is prefixed kinds- and is for these four pages only (.todo comes from site.css).
   Spec: docs/SYSTEM.md. Spacing: docs/spacing-maps/apps.md and kinds.md.

    1  Helpers                      6  What we mean (rows and pictures)
    2  The emblem and its arcs       7  Drawn examples (Team tools)
    3  Kind page hero                8  The apps in this kind, design links
    4  /apps/: the kept block         9  Closing call
    5  /apps/: table and kinds list  10 Phone and tablet
                                      11 Phone pass: pictures, drawings, table, targets
*/

/* ============================================================ 1. Helpers */
.section-head { max-width: 880px; }                           /* section titles may run to one line; leads stay a reading column */
.section-head .lead { max-width: 680px; }
.section-head .lead { text-wrap: pretty; }
.section-head.center .lead, .kinds-closing .lead { text-wrap: balance; }
.kinds-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============================================================ 2. The emblem (bird and three arcs) */
/* Top arc Operations (yellow), left arc Marketing (green), right arc Team tools (red). With .is-one only the .is-lit arc is
   at full strength and the other two sit at 20%. Drawn with the bird from sprite.svg, so the page carries no big path. */
.kinds-emb { display: block; width: 100%; height: auto; aspect-ratio: 1; color: var(--ink); overflow: visible; }
.kinds-emb .ring { fill: none; stroke: currentColor; stroke-opacity: .2; stroke-width: 1.4; }
.kinds-emb .arc {
  fill: none; stroke-width: 8; stroke-linecap: round;
  transition: opacity var(--d-tab) var(--ease);
}
.kinds-emb .arc-ops { stroke: var(--mk-ops); }
.kinds-emb .arc-mkt { stroke: var(--mk-mkt); }
.kinds-emb .arc-int { stroke: var(--mk-int); }
.kinds-emb.is-one .arc { opacity: .2; }
.kinds-emb.is-one .arc.is-lit { opacity: 1; }

/* ============================================================ 3. Kind page hero */
.kinds-hero { padding-top: var(--s-64); }                    /* a hero starts closer to the bar than other sections */
.kinds-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: var(--s-48); align-items: center; }
.kinds-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.kinds-hero-text > * + * { margin-top: var(--s-16); }
.kinds-hero-text > .kinds-chips { margin-top: var(--s-32); }
.kinds-hero .kinds-emb { width: 240px; }
.kinds-chips .chip { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.kinds-chips .chip[data-kind] { color: var(--kind-text); box-shadow: inset 0 0 0 1px var(--kind-text); background: var(--kind-soft); }
@keyframes kinds-light { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .kinds-hero .kinds-emb.is-one .arc.is-lit { animation: kinds-light var(--d-reveal) var(--ease) 240ms backwards; }   /* the lit arc comes on once */
}
@media (prefers-reduced-motion: reduce) {
  .kinds-hero .kinds-emb.is-one .arc.is-lit { animation: none; }                          /* no animation starts at all: the arc is simply lit */
  .kinds-emb .arc { transition: none; }
}

/* ============================================================ 4. /apps/: hero and the app bento */
/* The page opens left-aligned on the one left edge (the h1 and every later heading start where the nav does), then the bento (its tiles
   come from home.css, section 7, shared with Home) and the connector strip. 64 above the h1 (32 on phones), the colour-free gap
   below is --home-edge (64, phone 48). */
.apps-top { padding-top: var(--s-64); padding-bottom: var(--home-edge); }
.apps-top .section-head .lead { max-width: 680px; }

/* ============================================================ 5. /apps/: the table and the three kinds */
.kinds-table-card { padding: var(--s-8) var(--s-32); }
.kinds-table { table-layout: fixed; }
.kinds-table thead th { width: 29%; padding: var(--s-24) var(--s-16) var(--s-16); vertical-align: bottom; }
.kinds-table thead th:first-child { width: 13%; }
.kinds-table tbody th {
  padding: var(--s-16); vertical-align: top; text-align: left;
  border-bottom: 1px solid var(--line); color: var(--ink); font: 500 15px/20px var(--font-text);
}
.kinds-table tbody tr:last-child th { border-bottom: 0; }
.kinds-table tbody :is(th, td):first-child { padding-left: 0; }
.kinds-table td { vertical-align: top; padding-right: var(--s-24); }
.kinds-table td:last-child { padding-right: var(--s-16); }
.kinds-table-app { display: flex; align-items: center; gap: var(--s-12); color: var(--ink); }
.kinds-table-app img { flex: none; width: 40px; height: 40px; }
.kinds-table-app b { display: block; font: var(--logo-weight) 17px/24px var(--font-display); }
.kinds-table-app small { display: block; color: var(--ink-2); font: 400 13px/16px var(--font-text); }
.kinds-table-app:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kinds-price { font-size: 17px; line-height: 24px; }
.kinds-note { display: block; margin-top: var(--s-4); color: var(--ink-2); }
.kinds-table td .pill { display: flex; width: fit-content; margin-bottom: var(--s-8); }
.kinds-table td .link-arrow { display: flex; width: fit-content; margin-top: var(--s-4); }
.kinds-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-24); margin-top: var(--s-24); color: var(--ink-2); font: 400 15px/20px var(--font-text); }

.kinds-split { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-48) var(--s-64); align-items: center; }       /* the emblem column is the emblem's own width, centred beside the three rows */
.kinds-emb-fig { display: flex; flex-direction: column; gap: var(--s-16); }
.kinds-emb-fig .kinds-emb { width: 160px; }
.kinds-emb-fig figcaption { color: var(--ink-2); font: 400 13px/16px var(--font-text); }
.kinds-list { display: grid; gap: var(--s-16); padding: 0; list-style: none; }
.kinds-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-16) var(--s-24); }
.kinds-row-ic { width: 40px; height: 40px; color: var(--kind-text); }
.kinds-row-text > * + * { margin-top: var(--s-4); }
.kinds-row-apps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-12); margin-top: var(--s-12); }
.kinds-row-apps b { font: var(--logo-weight) 17px/24px var(--font-display); }
.kinds-go { flex: none; width: 20px; height: 20px; color: var(--ink-2); transition: transform var(--d-hover) var(--ease), color var(--d-hover) var(--ease); }
@media (hover: hover) { a.card:hover .kinds-go { transform: translateX(var(--arrow-go)); color: var(--kind-text, var(--ink)); } }

/* ============================================================ 6. What we mean: one idea per row, a picture beside it */
.kinds-mean { display: grid; gap: var(--s-64); }
.kinds-ex { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-64); align-items: center; }
.kinds-ex.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.kinds-ex.is-flip .kinds-ex-text { order: 2; }
.kinds-ex-text > * + * { margin-top: var(--s-12); }
.kinds-ex-text p { color: var(--ink-2); }
.kinds-ex figure { min-width: 0; }
.kinds-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; }               /* the pictures are 16:10, cut from the real screens */
.kinds-ex figcaption { margin-top: var(--s-16); color: var(--ink-2); font: 400 13px/16px var(--font-text); }

/* ============================================================ 7. Drawn examples (Team tools) */
.kinds-fig {
  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: var(--s-32);
  background: var(--grey); border: 1px solid var(--line); border-radius: 20px;
}
.kinds-fig svg { display: block; width: 100%; height: auto; }
.kinds-fig text { font-family: var(--font-text); font-size: 15px; fill: var(--ink); }          /* a role size (small), not 14: the drawing is 520 wide and renders at about 1:1 */
.kinds-fig .t-muted { fill: var(--ink-2); font-size: 13px; }
.kinds-fig .t-lit { fill: var(--mk-int-light); font-weight: 500; }
.kinds-fig .t-b { font-weight: 500; font-size: 15px; }
.kinds-fig .box { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.kinds-fig .box-lit { fill: color-mix(in srgb, var(--mk-int) 12%, var(--paper)); stroke: var(--mk-int); stroke-width: 1.5; }
.kinds-fig .wire { fill: none; stroke: #86868b; stroke-width: 1; }                      /* the arrows carry the order of the steps: 3.3 : 1 on the grey, not the 1.5 : 1 of a hairline */
.kinds-fig .wire-dash { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; stroke-linecap: round; }
.kinds-fig .wire-lit { fill: none; stroke: var(--mk-int); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kinds-fig .dot { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.5; }
.kinds-fig .dot-lit { fill: var(--mk-int); stroke: none; }

/* ============================================================ 8. The apps in this kind, and the two design links */
.kinds-apps { display: grid; gap: var(--s-16); padding: 0; list-style: none; }
.kinds-app { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--s-16) var(--s-24); }
.kinds-app > img { display: block; width: 64px; height: 64px; }
.kinds-app-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-12); }
.kinds-app-name .h4 { font-weight: var(--logo-weight); }
.kinds-app-line { margin-top: var(--s-4); color: var(--ink-2); }
.kinds-app-side { display: grid; justify-items: end; gap: var(--s-8); text-align: right; }
.kinds-app-side .num { line-height: 24px; }
@media (hover: hover) { a.card:hover .link-arrow::after { transform: translateX(var(--arrow-go)); } }

.kinds-link { display: flex; flex-direction: column; align-items: flex-start; }
.kinds-link .h4 { margin-bottom: var(--s-8); }
.kinds-link p { color: var(--ink-2); }
.kinds-link .link-arrow { margin-top: var(--s-24); }

/* ============================================================ 9. Closing call (shared candidate: the same on every page) */
.kinds-closing { padding: var(--s-64) var(--s-32) var(--s-48); border: 0; border-radius: 24px; text-align: center; }
.kinds-closing .lead { max-width: 560px; margin: var(--s-16) auto 0; }
.kinds-closing .cluster { justify-content: center; margin-top: var(--s-32); }

/* ============================================================ 9b. The offer: one compact price block, the last section before the closing call */
.kinds-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-16) var(--s-48); padding: var(--s-32); }
.kinds-offer-words > * + * { margin-top: var(--s-8); }
.kinds-offer-words p { max-width: 560px; }
.kinds-offer-price { color: var(--ink-2); font: 400 17px/24px var(--font-text); text-align: right; }
.kinds-offer-price .kinds-price { color: var(--ink); font-size: 28px; line-height: 32px; }
@media (max-width: 767px) { .kinds-offer-price .kinds-price { font-size: 24px; line-height: 28px; } }   /* the h3 step on a phone: 28 was an eighth size at 390 (14 Oct QA) */
.kinds-offer-price .kinds-note { margin-top: var(--s-4); font-size: 15px; line-height: 20px; }

/* ============================================================ 10. Phone and tablet */
@media (max-width: 1023px) {
  .kinds-hero-in { grid-template-columns: minmax(0, 1fr) 200px; gap: var(--s-32); }
  .kinds-hero .kinds-emb { width: 200px; }
  .kinds-ex { gap: var(--s-32); }
  .kinds-split { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-32); }
  .kinds-emb-fig .kinds-emb { width: 128px; }
}
@media (max-width: 767px) {
  .kinds-hero { padding-top: var(--s-32); }
  .apps-top { padding-top: var(--s-32); }
  .kinds-hero-in { grid-template-columns: 1fr; gap: var(--s-32); }
  .kinds-hero-emb { order: -1; }
  .kinds-hero .kinds-emb { width: 120px; }
  .kinds-mean { gap: var(--s-48); }
  .kinds-ex { grid-template-columns: 1fr; gap: var(--s-24); }
  .kinds-ex.is-flip { grid-template-columns: 1fr; }
  .kinds-ex.is-flip .kinds-ex-text { order: 0; }
  .kinds-fig { padding: var(--s-16); }
  .kinds-split { grid-template-columns: 1fr; gap: var(--s-24); }
  .kinds-emb-fig { flex-direction: row; align-items: center; gap: var(--s-16); }
  .kinds-emb-fig .kinds-emb { width: 88px; flex: none; }
  .kinds-app { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-12) var(--s-16); }
  .kinds-app > img { width: 48px; height: 48px; }
  .kinds-app-side { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .kinds-table-card { padding: 0 var(--s-16); }
  .table-wrap > .kinds-table { min-width: 760px; }                                  /* the shared floor (520) squeezes three apps into 139 px columns: 760 keeps each column about 218 px. The hint and frame are the shared ones */
  .kinds-closing { padding: var(--s-48) var(--s-24) var(--s-32); }
  .kinds-offer { grid-template-columns: 1fr; padding: var(--s-24); }
  .kinds-offer-price { text-align: left; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .kinds-offer { grid-template-columns: minmax(0, 1fr) auto; }
  .kinds-offer .link-arrow { grid-column: 1 / -1; }
}

/* ============================================================ 11. Phone pass (13 Oct): docs/phone-pass/p1.md */
/* The drawn examples on /team-tools/ come twice: the 520 px drawing for a computer, and a drawing laid out again for a narrow column
   (324 px wide, so its words stay at their real size). Only one is ever shown. */
.kinds-fig .kinds-svg-m { display: none; }
@media (max-width: 899px) {
  .kinds-fig .kinds-svg-d { display: none; }
  .kinds-fig .kinds-svg-m { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
  .kinds-fig { aspect-ratio: auto; padding: var(--s-24) var(--s-16); }
  .kinds-fig text { font-size: 15px; }
  .kinds-fig .t-muted { font-size: 13px; }
}
/* The mockup pictures come twice as well (see the <picture> in the pages): on a phone and on a small tablet the screen is laid out for
   a 356 px frame, with its own height, so its text stays 13 to 17 px. */
.kinds-shot picture { display: contents; }
@media (max-width: 599px), (min-width: 768px) and (max-width: 899px) {
  .kinds-shot img { aspect-ratio: var(--ar, 16 / 10); }
}
@media (max-width: 767px) {
  .kinds-chips .chip { height: 44px; padding: 0 var(--s-16); font-size: 15px; }
  .kinds-table-app { min-height: 44px; }
  .kinds-foot { gap: 0 var(--s-24); }
  .kinds-closing .cluster { gap: var(--s-8) var(--s-24); }
  /* the compare table: three apps side by side scroll inside the card, and the row names stay put at the left while you swipe */
  .kinds-table { border-collapse: separate; border-spacing: 0; }
  .kinds-table thead th:first-child { width: 104px; }
  .kinds-table thead th:first-child, .kinds-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--line); }
  .kinds-table tbody th { padding-right: var(--s-8); }
  .kinds-table-card .table-wrap.is-scrollable { border: 0; border-radius: 0; }       /* the card is the frame; the shared edge shade and "Swipe sideways" hint (site.css) stay */
  .kinds-table-card .table-wrap.is-scrollable > .table :is(th, td):first-child { padding-left: 0; }
  .kinds-table-card .table-wrap.is-scrollable::after { padding-left: 0; }                 /* the hint lines up with the row names (the card already has the 16 px) */
}
/* a tablet held in the hand (touch, 768 to 1023): chips and the app names in the table are 44 px targets as on the phone (text links get theirs from site.css); a mouse in a narrow window is unchanged */
@media (min-width: 768px) and (max-width: 1023px) and (pointer: coarse) {
  .kinds-chips .chip { height: 44px; padding: 0 var(--s-16); font-size: 15px; }
  .kinds-table-app { min-height: 44px; }
}

/* Team tools drawings, 900 to 1199: beside the words the 520 px drawing shrank its words under 13 px (10.3 at 900); the row stacks
   so the drawing gets the whole column (14 Oct gate round 2) */
@media (min-width: 900px) and (max-width: 1199px) {
  .kinds-ex:has(.kinds-fig), .kinds-ex.is-flip:has(.kinds-fig) { grid-template-columns: minmax(0, 1fr); gap: var(--s-32); }
  .kinds-ex.is-flip:has(.kinds-fig) .kinds-ex-text { order: 0; }
  .kinds-ex:has(.kinds-fig) figure { max-width: 600px; }                        /* about its drawn size, not blown up across the column */
}
