/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* ---------------------------------------------------------------- reveal -- */
[data-rise] { opacity: 0; transform: translateY(1.1rem); }
[data-rise].in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================================
   COVER — the only dark region above the fold
   =========================================================================== */

.cover {
  position: relative;
  background: var(--d-bg);
  color: var(--d-ink);
  padding-top: calc(var(--nav-h) + 4.5rem);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Layered atmosphere: grid veil, blue bloom, vignette */
.cover-grid {
  position: absolute; inset: 0; z-index: -3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 75%);
}
.cover-bloom {
  position: absolute; z-index: -2; pointer-events: none;
  top: -30%; left: 50%; width: 80rem; height: 50rem; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,87,255,.22) 0%, rgba(0,87,255,.06) 42%, transparent 70%);
  filter: blur(30px);
}
/* Resolve the dark cover into the white page below */
.cover-fade {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 14rem;
  background: linear-gradient(180deg, transparent, var(--d-bg) 72%);
}

.cover-head {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The one hierarchy ladder, shared with every other section header. */
.cover-head h1 { margin-top: var(--gap-eyebrow-head); }
.cover-head .t-lead {
  margin-top: var(--gap-head-body);
  color: var(--d-ink-2);
  max-width: 42ch;
}
.cover-cta {
  display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center;
  margin-top: var(--gap-body-cta);
}

/* --------------------------------------------------------------------------
   ECOSYSTEM DIAGRAM
   Six industry systems on one ring around a shared core. The inner orbit
   carries icon-only marks; naming that layer here as well turned the hero
   into a diagram.
   -------------------------------------------------------------------------- */

/* Capped so the diagram stays a composed object instead of stretching to the
   full width of a 27-inch display and pushing itself below the fold. */
.eco { position: relative; margin-top: var(--s-7); padding-bottom: var(--s-5); max-width: 66rem; margin-inline: auto; }

.eco-stage {
  position: relative;
  aspect-ratio: 16 / 6.4;
  min-height: 25rem;
  max-height: 30rem;
  display: grid;
  place-items: center;
}

.eco-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-link { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.eco-orbit { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 1; stroke-dasharray: 2 7; }
.eco-pulse { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; }

/* Centre */
.eco-hub {
  position: relative; z-index: 5;
  display: grid; place-items: center; gap: 0.35rem;
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(0,87,255,.30), rgba(5,7,14,.95) 72%);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(0,87,255,.14), 0 0 6rem -1.5rem rgba(0,87,255,.85);
}
.eco-hub-mark { width: 1.5rem; height: 1.5rem; color: var(--blue); }
.eco-hub-name { font-size: 1rem; font-weight: 640; letter-spacing: -0.035em; }

/* Industry cores */
.eco-core-node {
  position: absolute; z-index: 6;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.15rem 0.7rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(10, 15, 28, 0.82);
  border: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.eco-text { display: flex; flex-direction: column; line-height: 1.25; }
.eco-name { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; }
.eco-kind { font-size: 0.6875rem; color: var(--d-ink-3); }

.eco-core-node.lit, .eco-core-node:hover {
  border-color: rgba(0,87,255,.55);
  background: rgba(11, 20, 44, 0.92);
  box-shadow: 0 0 0 1px rgba(0,87,255,.26), 0 10px 30px -10px rgba(0,87,255,.6);
}

/* One mark treatment for every product — no per-product hue */
.eco-dot {
  width: 1.75rem; height: 1.75rem; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.eco-dot svg { width: 0.9rem; height: 0.9rem; }

/* Shared-layer marks on the orbit */
.eco-mark {
  position: absolute; z-index: 4;
  width: 2.1rem; height: 2.1rem; border-radius: 9px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(12, 18, 34, 0.9);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--d-ink-2);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.eco-mark svg { width: 0.95rem; height: 0.95rem; }
.eco-mark:hover { color: #fff; border-color: rgba(0,87,255,.5); }

.eco-core-node.is-static { position: static; transform: none; }
.eco-mobile { display: none; }

@media (max-width: 1023px) {
  .eco { margin-top: var(--s-5); }
  .eco-stage { aspect-ratio: auto; min-height: 0; }
  .eco-svg { display: none; }
  .eco-stage .eco-core-node, .eco-stage .eco-mark { display: none; }
  .eco-hub { width: 100%; height: auto; border-radius: var(--r-lg); padding: var(--s-5); gap: 0.5rem; }
  .eco-mobile { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: var(--s-4); }
}

/* ------------------------------------------------------------------ rail -- */

.rail {
  position: relative; display: flex; overflow: hidden;
  border-top: 1px solid var(--d-line);
  padding-block: 1.6rem;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rail-track { display: flex; flex: none; align-items: center; gap: 3rem; padding-right: 3rem; min-width: max-content; animation: marq 44s linear infinite; }
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
.rail-item { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9375rem; font-weight: 560; letter-spacing: -0.02em; color: var(--d-ink-3); white-space: nowrap; transition: color var(--t-base) var(--ease-out); }
.rail:hover .rail-item { color: var(--d-ink-2); }
.rail-item i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; flex: none; }
@media (prefers-reduced-motion: reduce) { .rail-track { animation: none; } .rail { overflow-x: auto; } }

/* ===========================================================================
   TWO AXES
   =========================================================================== */

.axes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--gap-head-content); }
.axis { padding: var(--pad-card); border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg); }
.axis-h { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--l-ink-3); }
.axis-h b { color: var(--blue); font-weight: 500; }
.axis .t-h3 { margin-top: var(--s-3); }
.axis p { margin-top: var(--s-3); color: var(--l-ink-2); }
.axis-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-4); }
.tag { padding: 0.45em 0.85em; border-radius: var(--r-pill); border: 1px solid var(--l-line); background: var(--l-bg-2); font-size: 0.8125rem; color: var(--l-ink-2); }

/* Intersection strip */
.cross { margin-top: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--l-ink); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; }
.cross p { color: rgba(255,255,255,.72); max-width: 48ch; margin-top: var(--s-2); }
.cross .t-h3 { color: #fff; }

/* ===========================================================================
   INDUSTRY GRID
   =========================================================================== */

.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--gap-head-content); }

.ind {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg);
  overflow: hidden; box-shadow: var(--lift-1);
  transition: box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}
.ind:hover { box-shadow: var(--lift-3); transform: translateY(-3px); border-color: var(--l-line-2); }

.ind-shot { position: relative; aspect-ratio: 3 / 2; background: var(--l-bg-3); overflow: hidden; border-bottom: 1px solid var(--l-line); }
.ind-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s var(--ease); }
.ind:hover .ind-shot img { transform: scale(1.025); }

.ind-body { padding: var(--pad-card); display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.ind-top { display: flex; align-items: center; gap: 0.8rem; }
.ind-mark {
  width: 2.35rem; height: 2.35rem; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--mark); color: var(--mark-ink);
}
.ind-mark svg { width: 1.05rem; height: 1.05rem; }
.ind-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ind-name { display: block; font-size: 1.0625rem; font-weight: 640; letter-spacing: -0.03em; line-height: 1.25; }
.ind-for { display: block; font-size: 0.75rem; color: var(--l-ink-3); line-height: 1.35; }
.ind-desc { color: var(--l-ink-2); font-size: 0.9375rem; }
.ind-foot { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0.7em; border-radius: var(--r-pill); font-size: 0.6875rem; font-weight: 550; letter-spacing: 0.02em; }
.pill-live { background: rgba(21,184,114,.12); color: #0e7c4c; }
.pill-soon { background: var(--l-bg-3); color: var(--l-ink-3); }
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Placeholder for verticals with no shipped UI to show */
.ind-blank { display: grid; place-items: center; gap: 0.5rem; height: 100%; color: var(--l-ink-3);
  background-image: radial-gradient(rgba(8,11,20,.07) 1px, transparent 1px); background-size: 1.25rem 1.25rem; }
.ind-blank svg { width: 1.6rem; height: 1.6rem; opacity: .5; }
.ind-blank span { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ===========================================================================
   APP CATALOG
   =========================================================================== */

.cat { margin-top: var(--gap-head-content); display: grid; gap: var(--s-6); }
.cat-group-h { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; padding-bottom: var(--s-3); border-bottom: 1px solid var(--l-line); }
.cat-group-h h3 { font-size: 1rem; font-weight: 620; letter-spacing: -0.02em; }
.cat-group-h span { font-family: var(--mono); font-size: 0.6875rem; color: var(--l-ink-3); }
.cat-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: var(--s-4); }

.app {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1rem 1.1rem; border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.app:hover { background: var(--l-bg); border-color: var(--l-line); box-shadow: var(--lift-1); }
.app-mark {
  width: 2.35rem; height: 2.35rem; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--mark-soft); color: var(--mark-soft-ink);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.app:hover .app-mark { background: var(--mark); color: var(--mark-ink); }
.app-mark svg { width: 1.05rem; height: 1.05rem; }
.app-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.app-n { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.app-d { display: block; font-size: 0.8125rem; color: var(--l-ink-2); line-height: 1.45; }

/* ===========================================================================
   STACK BUILDER
   =========================================================================== */

.build { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: var(--s-5); margin-top: var(--gap-head-content); align-items: start; }

.preset-list { display: grid; gap: 0.5rem; }
.preset {
  width: 100%; text-align: left; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); border: 1px solid var(--l-line); background: var(--l-bg);
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.preset:hover { border-color: var(--l-line-2); }
.preset[aria-selected="true"] { border-color: var(--blue); background: rgba(0,87,255,.04); box-shadow: 0 0 0 1px var(--blue); }
.preset b { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; }
.preset span { display: block; font-size: 0.8125rem; color: var(--l-ink-2); margin-top: 0.15rem; }

.stack { padding: var(--pad-card); border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg-2); min-height: 100%; }
.stack-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.stack-h .t-h4 { letter-spacing: -0.025em; }
.stack-cost { font-family: var(--mono); font-size: 0.8125rem; color: var(--l-ink-2); }
.stack-cost b { color: var(--l-ink); font-weight: 600; }

.stack-rows { margin-top: var(--s-4); display: grid; gap: 0.5rem; }
.srow {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1rem; border-radius: var(--r-md);
  background: var(--l-bg); border: 1px solid var(--l-line);
  animation: pop 0.45s var(--ease) backwards;
}
.srow.core { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(0,87,255,.35); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .srow { animation: none; } }

.srow-mark { width: 1.9rem; height: 1.9rem; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--l-bg-3); }
.srow.core .srow-mark { background: var(--blue); color: #fff; }
.srow-mark svg { width: 0.95rem; height: 0.95rem; }
.srow-n { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; }
.srow-r { font-size: 0.75rem; color: var(--l-ink-3); }
.srow-tag { margin-left: auto; font-family: var(--mono); font-size: 0.6875rem; color: var(--l-ink-3); }
.srow.core .srow-tag { color: var(--blue); }

.stack-note { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--l-line); font-size: 0.8125rem; color: var(--l-ink-2); }

/* ===========================================================================
   ADD-TO-TEQONE PANEL
   =========================================================================== */

.add-wrap { display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: var(--s-7); align-items: center; margin-top: var(--gap-head-content); }

.add-card { padding: var(--pad-card); border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg); box-shadow: var(--lift-3); }
.add-top { display: flex; align-items: center; gap: 0.85rem; }
.add-mark { width: 2.6rem; height: 2.6rem; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--lift-blue); }
.add-mark svg { width: 1.3rem; height: 1.3rem; }
.add-price { margin-left: auto; text-align: right; }
.add-price b { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.03em; }
.add-price span { display: block; font-size: 0.75rem; color: var(--l-ink-3); }
.add-desc { margin-top: var(--s-3); color: var(--l-ink-2); font-size: 0.9375rem; }
.add-checks { margin-top: var(--s-4); display: grid; gap: 0.6rem; }
.add-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; }
.add-check svg { width: 1rem; height: 1rem; flex: none; color: var(--blue); margin-top: 0.15rem; }
.add-card .btn { width: 100%; margin-top: var(--s-4); }
.add-done { display: none; margin-top: var(--s-4); padding: var(--s-3); border-radius: var(--r-md); background: rgba(21,184,114,.09); color: #0e7c4c; font-size: 0.875rem; font-weight: 550; text-align: center; }
.add-card.done .add-done { display: block; }
.add-card.done .btn { display: none; }

/* ===========================================================================
   FLOWS
   =========================================================================== */

.flows { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--gap-head-content); }
.flow { padding: var(--pad-card); border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg); }
.flow-h { font-size: 0.9375rem; font-weight: 620; letter-spacing: -0.02em; }
.flow-s { font-size: 0.8125rem; color: var(--l-ink-2); margin-top: 0.25rem; }
.chain { margin-top: var(--s-4); display: grid; gap: 0.4rem; }
.chain-n { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.85rem; border-radius: var(--r-sm); background: var(--l-bg-2); border: 1px solid var(--l-line); font-size: 0.8125rem; font-weight: 550; }
.chain-n.acc { background: rgba(0,87,255,.06); border-color: rgba(0,87,255,.28); color: var(--blue); }
.chain-n i { width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--l-bg-3); display: grid; place-items: center; flex: none; }
.chain-n.acc i { background: var(--blue); color: #fff; }
.chain-n i svg { width: 0.75rem; height: 0.75rem; }
.chain-arrow { width: 1px; height: 0.9rem; background: var(--l-line-2); margin-left: 1.55rem; }
.chain-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }

/* ===========================================================================
   LADDER
   =========================================================================== */

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--gap-head-content); counter-reset: step; }
.step { position: relative; padding: var(--s-5) var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--mono); font-size: 0.6875rem; color: var(--blue);
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; border: 1px solid rgba(0,87,255,.3); background: rgba(0,87,255,.05);
}
.step h4 { margin-top: var(--s-3); font-size: 1rem; font-weight: 620; letter-spacing: -0.025em; }
.step p { margin-top: var(--s-2); font-size: 0.875rem; color: var(--l-ink-2); }

/* Unlock list */
.unlocks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-4); }
.unlock { padding: 0.45em 0.8em; border-radius: var(--r-pill); background: var(--l-bg); border: 1px solid var(--l-line); font-size: 0.8125rem; color: var(--l-ink-2); }

/* Shipped-product figure */
.figure { max-width: 1000px; margin-inline: auto; margin-top: var(--s-6); border-radius: var(--r-lg); border: 1px solid var(--l-line); background: var(--l-bg); box-shadow: var(--lift-3); overflow: hidden; }
.figure-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--l-line); background: var(--l-bg-2); }
.figure-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--l-bg-3); flex: none; }
.figure-url { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--l-ink-3); }
.figure img { width: 100%; height: auto; }
.figure-cap { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--l-line); font-size: 0.8125rem; color: var(--l-ink-2); display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }

/* ===========================================================================
   PRINCIPLE / CTA
   =========================================================================== */

.principle { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--gap-head-content); }
.pr { padding: var(--pad-card); border-radius: var(--r-lg); border: 1px solid var(--l-line); }
.pr-no { background: var(--l-bg-2); }
.pr-yes { background: var(--l-bg); border-color: rgba(0,87,255,.3); box-shadow: 0 0 0 1px rgba(0,87,255,.12); }
.pr-t { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pr-no .pr-t { color: var(--l-ink-3); }
.pr-yes .pr-t { color: var(--blue); }
.pr p { margin-top: var(--s-3); font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.02em; }
.pr-no p { color: var(--l-ink-2); }

.cta { background: var(--d-bg); color: var(--d-ink); position: relative; overflow: hidden; text-align: center; }
.cta-bloom { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(0,87,255,.2), transparent 68%); }
.cta > .shell { position: relative; z-index: 1; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { margin-top: var(--s-4); color: var(--d-ink-2); max-width: 44ch; margin-inline: auto; }
.cta-row { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); flex-wrap: wrap; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

/* 16-inch and wider: a third column uses the width instead of stretching two
   cards, and the smaller card raises the effective pixel ratio of the two
   source-limited screenshots. */
@media (min-width: 1536px) {
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-items { grid-template-columns: repeat(4, 1fr); }
}

/* Small laptop — keep two columns everywhere, just tighten the gaps */
@media (max-width: 1279px) {
  .cat-items { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet — a layout of its own. Previously this inherited the phone's single
   column, which wasted most of the width. */
@media (max-width: 1023px) {
  .axes, .flows, .principle, .add-wrap { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }   /* stays two-up */
  .cat-items { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .build { grid-template-columns: 1fr; }
  .preset-list { grid-template-columns: repeat(2, 1fr); }
  .cross { grid-template-columns: 1fr; }
  .chain-split { grid-template-columns: repeat(3, 1fr); }
  .cover-top { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 767px) {
  .ind-grid { grid-template-columns: 1fr; }
  .cat-items { grid-template-columns: repeat(2, 1fr); }
  .preset-list { grid-template-columns: 1fr; }
  .chain-split { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .cat-items, .ladder { grid-template-columns: 1fr; }
  .cover h1 { max-width: none; }
}
