/* The Features page (src/components/pages/Features.astro, src/components/features/): each group of
   strengths in its own form (owner, 2026-11-08). Linked by the page only; the tokens of site.css, the
   section frame of pages.css. Classes start with "fx-". */

/* ---------- robot moves: the dark band ---------- */
.fx-band {
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(62, 197, 243, 0.22), rgba(62, 197, 243, 0) 62%),
    radial-gradient(55% 60% at 0% 100%, rgba(27, 166, 212, 0.14), rgba(27, 166, 212, 0) 72%),
    linear-gradient(165deg, #11435d 0%, var(--ink) 52%, #072335 100%);
}
/* the drawing grid of the data-flow card (How it works), strongest where the light falls */
.fx-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(85% 90% at 100% 0%, #000, transparent 75%);
  mask-image: radial-gradient(85% 90% at 100% 0%, #000, transparent 75%);
}
.fx-band > .container { position: relative; }
.fx-band .section-label { color: var(--sky); opacity: 0.9; }
.fx-band .s-head h2 { color: #fff; }
.fx-band .s-head h2 em { color: var(--sky); }
.fx-band-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* each column spans three rows shared with its neighbours (name, text, proof line), so the proof lines
   and their ticks start on one height however long the text above (owner, 2026-11-09) */
.fx-band-list > li {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 4px 28px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}
.fx-band-list > li:first-child { padding-left: 0; border-left: 0; }
.fx-band-list > li:last-child { padding-right: 0; }
.fx-band h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
}
.fx-band-list p { color: rgba(255, 255, 255, 0.74); font-size: 0.97rem; line-height: 1.58; }
.fx-band .fx-proof {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  color: #a6e4f8;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}
/* the text above keeps its own room above the proof line */
.fx-band-list p:not(.fx-proof) { margin-bottom: 20px; }
.fx-band .fx-proof svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(62, 197, 243, 0.18);
  fill: none;
  stroke: var(--sky);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1000px) {
  .fx-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-band-list > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fx-band-list > li:nth-child(even) { padding-right: 0; }
}
/* the room between the two rows of columns: a margin, as a row gap would also open inside each column */
@media (min-width: 601px) and (max-width: 1000px) {
  .fx-band-list > li:nth-child(n + 3) { margin-top: 40px; }
}
@media (max-width: 600px) {
  .fx-band-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .fx-band-list > li { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.13); }
  .fx-band-list > li:first-child { padding-top: 0; border-top: 0; }
  .fx-band-list > li:last-child { padding-bottom: 0; }
}

/* ---------- ticks (layers, pallet and machine) ---------- */
.fx-ticks { list-style: none; }
.fx-ticks > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
.fx-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2f7a55;
  box-shadow: 0 0 0 4px var(--mint-soft);
}
.fx-tick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-ticks h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.016em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.fx-ticks p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.56; }

/* ---------- layers: slices of the program ---------- */
/* the pictures share one height: each card grows by its picture's width to height (--r) */
.fx-shots { list-style: none; display: flex; gap: 22px; align-items: flex-start; }
/* (the frame's padding and border, 18 px, is the basis; the rest grows by the picture's ratio) */
.fx-shot { flex: var(--r) 1 18px; min-width: 0; }
.fx-shot-pic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}
.fx-shot-pic img { display: block; width: 100%; height: auto; border-radius: 11px; }
.fx-shot h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 20px 0 6px;
}
.fx-shot p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.58; max-width: 46ch; }
.fx-ticks-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .fx-shots { flex-wrap: wrap; row-gap: 36px; }
  .fx-shot { flex: 1 1 calc(50% - 11px); }
  /* the wide picture of layers A and B takes the row under the two narrow ones */
  .fx-shot-layer-ab { flex-basis: 100%; order: 1; }
  .fx-ticks-row { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 40px; padding-top: 30px; }
}
@media (max-width: 600px) {
  .fx-shot { flex-basis: 100%; }
  .fx-shot-layer-ab { order: 0; }
  .fx-shot h3 { margin-top: 16px; }
}

/* ---------- pallet and machine: the ticked list beside the program ---------- */
.fx-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 52px; align-items: start; }
.fx-split .fx-ticks > li { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.fx-split .fx-ticks > li:first-child { padding-top: 0; }
.fx-split .fx-ticks > li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 901px) {
  .fx-split-fig { position: sticky; top: 104px; }
}
@media (max-width: 900px) {
  .fx-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fx-split-fig { order: -1; }
}

/* ---------- station and plant: drawing paper ---------- */
.fx-plan-sec { background: var(--sky-haze); border-block: 1px solid var(--line); }
.fx-plan-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 126, 168, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 126, 168, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(10, 126, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 126, 168, 0.05) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 45%, #000 35%, transparent 85%);
  mask-image: radial-gradient(75% 85% at 50% 45%, #000 35%, transparent 85%);
}
.fx-plan-sec > .container { position: relative; }
.fx-plan {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
}
.fx-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--sky-deep);
  box-shadow: 4px 4px 0 var(--sky-soft);
  color: var(--sky-deep);
}
.fx-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx-plan h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.016em;
  color: var(--ink);
  margin-bottom: 6px;
}
.fx-plan p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.56; }
@media (max-width: 1000px) { .fx-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fx-plan { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- daily work: under the keys ---------- */
.fx-keys { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.fx-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 104px;
  margin-bottom: 24px;
  padding: 0 18px 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f4f9fb 100%);
  box-shadow: inset 0 -6px 0 #e1edf2, 0 18px 30px -18px rgba(10, 80, 110, 0.5);
  color: var(--sky-deep);
}
.fx-key svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx-key-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.fx-keys h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 6px;
}
.fx-keys p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.58; }
@media (max-width: 760px) {
  .fx-keys { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fx-keys > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
  .fx-keys > li:first-child { padding-top: 0; }
  .fx-keys > li:last-child { border-bottom: 0; padding-bottom: 0; }
  .fx-key { grid-row: span 2; min-width: 72px; height: 72px; margin-bottom: 0; padding: 0 10px 5px; border-radius: 15px; }
  .fx-key svg { width: 32px; height: 32px; }
  .fx-key-text { font-size: 1.8rem; }
}
