/* Phoenix AI Solutions · industries.css (16 Oct 2026)
   Page styles for: /industries/ (index), the six industry pages, the four broad pages and /your-own-server/.
   Loads after site.css. Everything is prefixed ind-. Spacing values come from the scale only (4 8 12 16 24 32 48 64 96).
   The page rhythm, .section, .band, .card, .btn, .faq and .todo come from site.css; nothing here sets them again.

    1  A note on the nav    5  Pick your automations (checkboxes, button bar)
    2  Hero and the photo                  6  Cards: industries, links, problems
    3  Crumb and small helpers             7  Rows and the map (the server page) and the closing card
    4  The journey (steps)                 8  Phones
*/

/* ============================================================ 1. Nav mark (site.css marks the other links; this page set adds its own) */
/* (the Industries link sits inside the "Build for you" menu, which site.css already marks for data-nav="build"; nothing to add here) */

/* ============================================================ 2. Hero and the photo */
.ind-hero { display: grid; gap: var(--s-48); align-items: center; }
.ind-hero-text > * + * { margin-top: var(--s-16); }
.ind-hero-text > .ind-crumb + * { margin-top: var(--s-12); }
.ind-hero-text .lead { max-width: 560px; }
.ind-hero-text > .cluster { margin-top: var(--s-32); }
.ind-photo { margin: 0; border-radius: var(--r-24); overflow: hidden; background: var(--grey); box-shadow: 0 0 0 1px var(--line); }
.ind-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ind-photo.is-natural img { aspect-ratio: auto; max-height: 480px; }          /* the four broad-page pictures keep their own shape */
.ind-photo.is-small { max-width: 420px; }                                       /* a small crop is never stretched past its own size by much */
@media (min-width: 900px) { .ind-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-64); } }

/* ============================================================ 3. Crumb and small helpers */
.ind-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); }
.ind-crumb a { color: var(--ink-2); }
@media (hover: hover) { .ind-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.ind-more { margin-top: var(--s-24); }
.ind-note { margin-top: var(--s-16); }
.ind-prose { max-width: 680px; }
.ind-prose > * + * { margin-top: var(--s-16); }
.ind-prose a:not(.btn, .link-arrow) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ============================================================ 4. The journey: three or four steps, left to right (top to bottom on a phone) */
.ind-journey { display: grid; gap: var(--s-32); padding: 0; list-style: none; counter-reset: ind-step; }
.ind-step {
  position: relative; display: flex; align-items: center; gap: var(--s-16); min-width: 0;
  padding: var(--s-16) var(--s-24); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-20);
}
.ind-step::before {
  counter-increment: ind-step; content: counter(ind-step);
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums;
}
.ind-step b { font: 500 21px/28px var(--font-display); overflow-wrap: anywhere; }
.ind-step:not(:last-child)::after {                           /* a small arrow to the next step */
  content: ""; position: absolute; width: 16px; height: 16px; background: var(--ink-2);
  left: calc(50% - 8px); bottom: calc(-1 * var(--s-24) - 4px); transform: rotate(90deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) {
  .ind-journey { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--s-48); }
  .ind-step:not(:last-child)::after { left: auto; right: calc(-1 * var(--s-32) - 8px); bottom: auto; top: calc(50% - 8px); transform: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .ind-step { flex-direction: column; align-items: flex-start; } }

/* ============================================================ 5. Pick your automations */
.ind-pick, .ind-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.ind-pick legend { padding: 0; }
.ind-list { display: grid; gap: var(--s-12); padding: 0; list-style: none; }
.ind-opt {
  display: flex; align-items: center; gap: var(--s-16); min-height: 64px; padding: var(--s-12) var(--s-16); height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-20); cursor: pointer;
  transition: border-color var(--d-hover) var(--ease), background-color var(--d-hover) var(--ease);
}
@media (hover: hover) { .ind-opt:hover { border-color: var(--line-strong); } }
.ind-opt:has(input:checked) { border-color: var(--ink); background: var(--grey); }
.ind-opt:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.ind-opt input {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line-field); border-radius: 8px;
  transition: background-color var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease);
}
.ind-opt input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--ink);
}
.ind-opt input:focus-visible { outline: none; }
.ind-opt-text { font: 500 17px/24px var(--font-text); min-width: 0; overflow-wrap: anywhere; }
.ind-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-24); margin-top: var(--s-32);
  padding: var(--s-24); background: var(--grey); border-radius: var(--r-24);
}
.ind-bar-text { flex: 1 1 280px; min-width: 0; }
.ind-bar-text > * + * { margin-top: var(--s-4); }
.ind-count { font: 500 17px/24px var(--font-text); }
@media (min-width: 768px) { .ind-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================ 6. Cards: industries, links, problems */
.ind-cards { display: grid; gap: var(--s-24); padding: 0; list-style: none; }
.ind-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.ind-card-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grey); }
.ind-card-body { display: flex; flex-direction: column; flex: 1; gap: var(--s-8); padding: var(--s-24); }
.ind-card-body .link-arrow { margin-top: auto; padding-top: var(--s-8); }
.ind-card-body p { color: var(--ink-2); }
@media (min-width: 600px) { .ind-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ind-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The list page uses one 12-column bento. Industry detail pages keep the regular card grid above. */
.ind-bento { gap: var(--s-16); }
.ind-bento > li { min-width: 0; }
.ind-bento .ind-card {
  position: relative; isolation: isolate; min-height: 360px; border: 0; border-radius: var(--r-24);
  color: #fff; background: var(--ink); box-shadow: 0 20px 50px -42px rgba(18, 18, 24, .7);
}
.ind-bento .ind-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* top fade behind the white title and line (IND-02, DEC-124): lifts them to 4.5:1 on every photo; the bottom fade is the second layer, unchanged */
  background: linear-gradient(180deg, rgba(0,0,0,.68) 0, rgba(0,0,0,.62) 150px, transparent 270px),
    linear-gradient(180deg, transparent 28%, rgba(0,0,0,.18) 54%, rgba(0,0,0,.88) 100%);
}
.ind-bento .ind-card-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transition: transform .65s var(--ease); }
.ind-bento .ind-card-body { position: relative; z-index: 1; justify-content: flex-end; padding: var(--s-32); }
.ind-bento .ind-card-body p { max-width: 42ch; color: rgba(255,255,255,.84); }
.ind-bento .ind-card-body .h4 { color: #fff; font-size: 24px; line-height: 32px; }
.ind-bento .ind-card-body .link-arrow { color: #fff; }
.ind-bento .ind-card-body .link-arrow::after { filter: brightness(0) invert(1); }
@media (hover: hover) {
  .ind-bento .ind-card:hover .ind-card-img { transform: scale(1.045); }
  .ind-bento .ind-card:hover { transform: translateY(-3px); box-shadow: 0 28px 58px -40px rgba(18, 18, 24, .72); }
}
@media (min-width: 700px) {
  .ind-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-bento .ind-bento-wide { grid-column: span 2; }
  .ind-bento .ind-bento-wide .ind-card { min-height: 420px; }
}
@media (min-width: 1024px) {
  .ind-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ind-bento > li { grid-column: span 4; }
  .ind-bento .ind-bento-wide { grid-column: span 7; }
  .ind-bento .ind-bento-tall { grid-column: span 5; }
  .ind-bento .ind-bento-tall .ind-card { min-height: 500px; }
  .ind-bento .ind-bento-wide .ind-card { min-height: 500px; }
}
@media (max-width: 699px) {
  .ind-bento { grid-template-columns: minmax(0,1fr); }
  .ind-bento .ind-card { min-height: 340px; }
  .ind-bento .ind-card-body { padding: var(--s-24); }
}
.ind-cards.is-four { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ind-cards.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ind-cards.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ind-links { display: grid; gap: var(--s-24); padding: 0; list-style: none; }
.ind-link { display: flex; flex-direction: column; gap: var(--s-8); height: 100%; }
.ind-link p { color: var(--ink-2); }
.ind-link .link-arrow { margin-top: auto; padding-top: var(--s-8); }
@media (min-width: 768px) { .ind-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ind-links.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 1023px) { .ind-links.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ind-links.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ind-problems { display: grid; gap: var(--s-24); padding: 0; list-style: none; }
.ind-problem { padding-top: var(--s-16); border-top: 1px solid var(--line-strong); }
.ind-problem > * + * { margin-top: var(--s-8); }
.ind-problem p { color: var(--ink-2); }
@media (min-width: 768px) { .ind-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-32) var(--s-48); } }

.ind-examples { max-width: 760px; }
.ind-split { display: grid; gap: var(--s-32); align-items: center; }
@media (min-width: 900px) { .ind-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-64); } }

/* ============================================================ 7. Rows (the server page) and the closing card */
.ind-rows { display: grid; gap: var(--s-24); padding: 0; list-style: none; }
.ind-rows li { display: flex; align-items: flex-start; gap: var(--s-16); }
.ind-rows .icon-tile { width: 48px; height: 48px; border-radius: var(--r-14); }
.ind-rows b { display: block; font: 500 17px/24px var(--font-text); }
.ind-rows p { color: var(--ink-2); margin-top: var(--s-4); }
.ind-two { display: grid; gap: var(--s-24); }
@media (min-width: 768px) { .ind-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ind-two .card > * + * { margin-top: var(--s-12); }

.ind-closing { padding: var(--s-64) var(--s-32) var(--s-48); border: 0; border-radius: var(--r-24); text-align: center; }
.ind-closing .lead { max-width: 560px; margin: var(--s-16) auto 0; text-wrap: balance; }
.ind-closing .cluster { justify-content: center; margin-top: var(--s-32); }

/* the server page: three parts side by side (stacked on a phone), the middle one is the server */
.ind-map { display: grid; gap: var(--s-12); }
.ind-map-part { display: grid; gap: var(--s-4); padding: var(--s-24); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-20); }
.ind-map-part b { font: 500 21px/28px var(--font-display); }
.ind-map-part span { color: var(--ink-2); font: 400 15px/20px var(--font-text); }
.ind-map-part.is-hi { background: var(--ink); border-color: var(--ink); padding-block: var(--s-32); }
.ind-map-part.is-hi b { color: var(--paper); }
.ind-map-part.is-hi span { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.ind-rows-grid { gap: var(--s-32) var(--s-48); }
@media (min-width: 768px) { .ind-rows-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================ 8. Phones */
@media (max-width: 767px) {
  .ind-hero { gap: var(--s-32); }
  .ind-hero-text .cluster .btn { width: 100%; }
  .ind-bar { padding: var(--s-16); }
  .ind-bar .btn { width: 100%; }
  .ind-closing { padding: var(--s-48) var(--s-24) var(--s-32); }
  .ind-closing .cluster { gap: var(--s-8) var(--s-24); }
  .ind-step b { font-size: 19px; line-height: 24px; }
}

/* ============================================================ 9. Added 16 Oct 2026 (evening): two-card rows and spacing under card grids on the reworked pages */
.ind-cards.is-two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ind-cards.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ind-cards.is-two .ind-link { padding: var(--s-24); }
.ind-links.ind-after, .ind-cards + .ind-links { margin-top: var(--s-24); }
.ind-prose p { max-width: 68ch; }

/* new search pages */
/* Five- and six-step journeys (manufacturers and traders, import and export): side by side from 1024px with the
   number above the word; stacked like a phone between 768 and 1023px, where six steps would be too narrow. */
@media (min-width: 768px) and (max-width: 1023px) {
  .ind-journey.is-long { grid-template-columns: minmax(0, 1fr); gap: var(--s-32); }
  .ind-journey.is-long .ind-step { flex-direction: row; align-items: center; }
  .ind-journey.is-long .ind-step:not(:last-child)::after { left: calc(50% - 8px); right: auto; top: auto; bottom: calc(-1 * var(--s-24) - 4px); transform: rotate(90deg); }
}
@media (min-width: 1024px) {
  .ind-journey.is-long { gap: var(--s-32); }
  .ind-journey.is-long .ind-step { flex-direction: column; align-items: flex-start; gap: var(--s-12); padding: var(--s-16); }
  .ind-journey.is-long .ind-step b { font-size: 19px; line-height: 24px; }
  .ind-journey.is-long .ind-step:not(:last-child)::after { right: calc(-1 * var(--s-24) - 8px); }
}

/* WhatsApp lead follow-up: the hero panel (four sources flowing into one list), in place of a photo */
.ind-flow { display: grid; gap: var(--s-16); padding: var(--s-24); }
.ind-flow-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); padding: 0; margin: 0; list-style: none; }
.ind-flow-in li { display: flex; align-items: center; gap: var(--s-12); min-width: 0; padding: var(--s-12); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-20); }
.ind-flow-in b, .ind-flow-out b { font: 500 17px/24px var(--font-text); overflow-wrap: anywhere; }
.ind-flow .icon-tile { flex: none; width: 40px; height: 40px; border-radius: var(--r-14); }
.ind-flow .icon-tile svg { width: 22px; height: 22px; }
.ind-flow-out { position: relative; display: flex; align-items: center; gap: var(--s-16); margin-top: var(--s-24); padding: var(--s-16); background: var(--ink); color: var(--paper); border-radius: var(--r-20); }
.ind-flow-out > span:last-child { display: grid; gap: var(--s-4); min-width: 0; }
.ind-flow-out .small { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.ind-flow-out::before {                                       /* a small down arrow from the four sources to the one list */
  content: ""; position: absolute; left: calc(50% - 8px); top: calc(-1 * var(--s-24) + 4px); width: 16px; height: 16px; background: var(--ink-2); transform: rotate(90deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 420px) { .ind-flow-in { grid-template-columns: minmax(0, 1fr); } }
