/* ==========================================================================
   Sections — page-level composition
   ========================================================================== */

/* ---- 01 · Hero ------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 1.5rem + 6vw, 7.5rem));
  padding-bottom: var(--section-y-sm);
  overflow: clip;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(1400px, 140vw);
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 38% 50%, rgba(38, 61, 50, 0.14), transparent 70%),
    radial-gradient(closest-side at 64% 55%, rgba(38, 61, 50, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: var(--s-8);
}

.hero-title {
  max-width: 17ch;
}

.hero-sub {
  display: grid;
  gap: var(--s-8);
}

.hero-sub .lead {
  max-width: 48ch;
}

@media (min-width: 1024px) {
  .hero-sub {
    grid-template-columns: minmax(0, 580px) auto;
    justify-content: space-between;
    align-items: end;
  }
}

/* ---- 02 · Problem ---------------------------------------------------- */

.problem-title {
  margin-top: var(--s-6);
  max-width: 14ch;
  font-size: clamp(2.4rem, 1rem + 4.8vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.prows {
  margin-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--night-line);
}

.prow {
  position: relative;
  display: grid;
  gap: var(--s-3) var(--s-12);
  padding-block: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  border-bottom: 1px solid var(--night-line);
}

.prow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-emphasized) 0.15s;
}

.prow.is-in::before {
  transform: scaleX(1);
}

.prow-fig {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: clamp(3.25rem, 2rem + 4vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.prow-slash {
  margin-left: -0.12em;
  color: var(--night-text-3);
}

.prow-unit {
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--night-text-2);
  margin-left: 0.2em;
}

.prow-text {
  max-width: 42ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--night-text-2);
}

.prow-text {
  font-size: var(--fs-body);
}

@media (min-width: 900px) {
  .prows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-10);
    border-top: 0;
  }

  .prow {
    align-content: start;
    gap: var(--s-4);
    padding-block: var(--s-8) 0;
    border-top: 1px solid var(--night-line);
    border-bottom: 0;
  }

  .prow-text {
    max-width: 32ch;
  }
}

/* ---- 04 · How it works ----------------------------------------------- */

.how-grid {
  display: grid;
  gap: var(--s-12);
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
}

.how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  padding-block: var(--s-10);
  border-top: 1px solid var(--line);
}

.how-num {
  font-size: var(--fs-xs);
  color: var(--mute);
}

.how-name {
  margin: var(--s-3) 0 var(--s-4);
}

.how-step .lead {
  max-width: 34ch;
}

.how-stage {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 0.75rem + 1vw, 24px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
}

.hs-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hs-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.hs-title strong {
  font-size: 14.5px;
  font-weight: 550;
}

.hs-title span {
  font-size: 12px;
  color: var(--mute);
}

.hs-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--graphite);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  white-space: nowrap;
  transition: color var(--dur-md) var(--ease-standard), background-color var(--dur-md) var(--ease-standard),
    box-shadow var(--dur-md) var(--ease-standard);
}

.hs-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

[data-step="2"] .hs-status {
  color: #8a5a12;
  background: rgba(240, 164, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(160, 104, 20, 0.28);
}

[data-step="3"] .hs-status {
  color: #11633a;
  background: rgba(47, 191, 113, 0.1);
  box-shadow: inset 0 0 0 1px rgba(17, 99, 58, 0.28);
}

.hs-block {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0.38;
  transition: opacity var(--dur-xl) var(--ease-standard), box-shadow var(--dur-lg) var(--ease-standard),
    background-color var(--dur-lg) var(--ease-standard);
}

.hs-label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--mute);
}

/* Each step builds on the last */
.how-stage .hs-block--1,
[data-step="2"] .hs-block--2,
[data-step="3"] .hs-block--2,
[data-step="3"] .hs-block--3 {
  opacity: 1;
}

[data-step="1"] .hs-block--1,
[data-step="2"] .hs-block--2,
[data-step="3"] .hs-block--3 {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(38, 61, 50, 0.35), 0 0 0 4px rgba(38, 61, 50, 0.07);
}

.hs-conns {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-conns li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.hs-conns li:last-child {
  border-bottom: 0;
}

.hs-ico {
  width: 16px;
  height: 16px;
  color: var(--graphite);
}

.hs-ok {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  color: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--dur-md) var(--ease-standard), color var(--dur-md) var(--ease-standard),
    box-shadow var(--dur-md) var(--ease-standard);
}

.hs-ok .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.how-stage.is-built .hs-conns .hs-ok {
  color: #fff;
  background: var(--signal);
  box-shadow: none;
}

.hs-conns li:nth-child(2) .hs-ok { transition-delay: 120ms; }
.hs-conns li:nth-child(3) .hs-ok { transition-delay: 240ms; }
.hs-conns li:nth-child(4) .hs-ok { transition-delay: 360ms; }

.hs-kb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-kb li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--dur-md) var(--ease-standard), transform var(--dur-lg) var(--ease-emphasized);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.hs-kb li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color var(--dur-md) var(--ease-standard);
  transition-delay: inherit;
}

[data-step="2"] .hs-kb li::before,
[data-step="3"] .hs-kb li::before {
  background: var(--violet);
}

.hs-live {
  display: grid;
  gap: 10px;
}

.wave--sm {
  height: 28px;
  gap: 3px;
}

.hs-feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-feed li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  opacity: 0.5;
  transform: translateY(4px);
  transition: opacity var(--dur-lg) var(--ease-emphasized), transform var(--dur-lg) var(--ease-emphasized);
}

.hs-feed li:nth-child(2) { transition-delay: 160ms; }
.hs-feed li:nth-child(3) { transition-delay: 320ms; }

.hs-feed .mono {
  flex: none;
  width: 60px;
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.9;
}

[data-step="3"] .hs-feed li {
  opacity: 1;
  transform: none;
}

@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 1rem + 5vw, 7rem);
  }

  .how-step {
    min-height: 64vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.28;
    transition: opacity var(--dur-xl) var(--ease-standard);
  }

  .how-step.is-active {
    opacity: 1;
  }

  .how-step:first-child {
    min-height: 52vh;
    justify-content: flex-start;
  }

  .how-stage-wrap {
    position: sticky;
    top: calc(var(--nav-h) + 6vh);
    align-self: start;
    margin-top: var(--s-10);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .how-step {
    opacity: 1;
  }
}

/* ---- 05 · Automation system ----------------------------------------- */

.system-grid {
  display: grid;
  gap: var(--s-16);
}

.system-intro {
  display: grid;
  gap: var(--s-6);
  align-content: start;
}

.system-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--night-text-3);
}

.pipe {
  position: relative;
  padding-left: 44px;
}

.pipe-rail {
  position: absolute;
  left: 11px;
  top: 30px;
  bottom: 60px;
  width: 2px;
  border-radius: 2px;
  background: var(--night-line-strong);
}

.pipe-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--blue-soft), var(--violet-soft));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.pipe-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(221, 161, 140, 0.3), 0 0 26px 6px rgba(221, 161, 140, 0.55);
  transform: translate3d(0, calc(var(--p, 0) * var(--rail-h, 0px)), 0);
  opacity: var(--pulse-o, 0);
  transition: opacity var(--dur-md) var(--ease-standard);
}

.pipe-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipe-node {
  position: relative;
  padding: 16px 0 clamp(28px, 1rem + 2vw, 44px);
}

.pipe-dot {
  position: absolute;
  left: -40px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 1.5px var(--night-line-strong);
  transition: box-shadow var(--dur-lg) var(--ease-standard), background var(--dur-lg) var(--ease-standard);
}

.pipe-node.is-active .pipe-dot {
  background: radial-gradient(circle, #fff 0 3px, var(--night) 3.5px);
  box-shadow: inset 0 0 0 1.5px var(--violet-soft), 0 0 0 5px rgba(221, 161, 140, 0.16);
}

.pipe-body {
  opacity: 0.32;
  transform: translate3d(8px, 0, 0);
  transition: opacity var(--dur-xl) var(--ease-standard), transform var(--dur-xl) var(--ease-emphasized);
}

.pipe-node.is-active .pipe-body {
  opacity: 1;
  transform: none;
}

.pipe-body h3 {
  font-size: var(--fs-h3);
  font-weight: 550;
  letter-spacing: var(--tracking-snug);
  line-height: 1.25;
}

.pipe-body p {
  margin: 6px 0 14px;
  color: var(--night-text-2);
}

.pipe-log {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--night-text-2);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line);
  overflow-wrap: anywhere;
  transition: color var(--dur-lg) var(--ease-standard), box-shadow var(--dur-lg) var(--ease-standard);
}

.pipe-log span {
  color: var(--night-text-3);
}

.pipe-node.is-active .pipe-log {
  color: var(--night-text);
  box-shadow: inset 0 0 0 1px rgba(221, 161, 140, 0.3);
}

@media (min-width: 1024px) {
  .system-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(4rem, 2rem + 5vw, 8rem);
  }

  .system-intro {
    position: sticky;
    top: calc(var(--nav-h) + 10vh);
    align-self: start;
  }
}

/* ---- 07 · Industries ------------------------------------------------- */

.ind {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.ind-tabs-wrap {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.ind-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.ind-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ind-tab {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--graphite);
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color var(--dur-sm) var(--ease-standard), background-color var(--dur-md) var(--ease-standard),
    box-shadow var(--dur-md) var(--ease-standard);
}

.ind-tab:hover {
  color: var(--ink);
}

.ind-tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--blue);
  box-shadow: var(--shadow-1);
}

@media (min-width: 1024px) {
  .ind-tabs-wrap {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .ind-tabs {
    width: auto;
    flex-wrap: wrap;
    border-radius: 18px;
  }
}

.ind-panel {
  display: grid;
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
}

.ind-panel:focus-visible {
  outline-offset: 4px;
}

.ind-left,
.ind-right {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(22px, 1rem + 2vw, 44px);
}

.ind-right {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.ind-biz {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
}

.ind-biz em {
  display: block;
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--mute);
}

.ind-goal {
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.ind-convo {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 92%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.bubble > span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--mute);
}

.bubble--caller {
  justify-self: end;
  background: var(--paper-2);
  border-top-right-radius: 4px;
}

.bubble--ai {
  justify-self: start;
  background: rgba(38, 61, 50, 0.06);
  box-shadow: inset 0 0 0 1px rgba(38, 61, 50, 0.2);
  border-top-left-radius: 4px;
}

.bubble--ai > span {
  color: #263D32;
}

.ind-flow-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--mute);
}

.ind-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ind-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
}

.ind-flow li::before {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}

.ind-flow li:last-child {
  padding-bottom: 0;
}

.ind-flow li:last-child::before {
  display: none;
}

.ind-flow .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.ind-flow strong {
  display: block;
  padding-top: 3px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.ind-flow small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mute);
}

.ind-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: #11633a;
  background: rgba(47, 191, 113, 0.09);
  box-shadow: inset 0 0 0 1px rgba(17, 99, 58, 0.22);
}

.ind-outcome .confirm-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* Panel swap choreography */
.ind-panel [data-ind-anim] {
  transition: opacity var(--dur-lg) var(--ease-emphasized), transform var(--dur-lg) var(--ease-emphasized);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.ind-panel.is-leaving [data-ind-anim] {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition-duration: 160ms;
  transition-delay: 0ms;
}

.ind-panel.is-entering [data-ind-anim] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: none;
}

.ind-note {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--mute);
}

@media (min-width: 900px) {
  .ind-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .ind-right {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ---- 09 · Demonstration --------------------------------------------- */

.case-disclaimer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--night-text-3);
}

.case-switch {
  position: relative;
  display: none; /* needs JS; without it both columns simply stack */
  grid-template-columns: 1fr 1fr;
  margin-top: var(--s-10);
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line-strong);
}

.js .case-switch {
  display: inline-grid;
}

.case-switch button {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--night-text-2);
  transition: color var(--dur-md) var(--ease-standard);
}

.case-switch button[aria-checked="true"] {
  color: var(--ink);
}

.case-switch-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-pill);
  background: var(--night-text);
  transition: transform var(--dur-lg) var(--ease-emphasized);
}

.case-switch[data-active="after"] .case-switch-thumb {
  transform: translateX(100%);
}

.case-grid {
  display: grid;
  gap: 16px;
  margin-top: var(--s-6);
}

.case-grid[data-view="after"] .case-col--before,
.case-grid[data-view="before"] .case-col--after {
  display: none;
}

.case-col {
  padding: clamp(24px, 1rem + 2vw, 44px);
  border-radius: var(--r-lg);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line);
}

.case-col--after {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(221, 161, 140, 0.12), transparent 60%),
    var(--night-2);
  box-shadow: inset 0 0 0 1px rgba(221, 161, 140, 0.3);
}

.case-col-head {
  display: grid;
  gap: 8px;
}

.case-kicker {
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--night-text-3);
}

.case-col--after .case-kicker {
  color: var(--violet-soft);
}

.case-col--before .h3 {
  color: var(--night-text-2);
}

.tl {
  margin: var(--s-8) 0;
  padding: 0;
  list-style: none;
}

.tl li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 22px 28px;
}

.tl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--night-text-3);
}

.tl li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  bottom: 2px;
  width: 1px;
  background: var(--night-line-strong);
}

.tl li:last-child {
  padding-bottom: 0;
}

.tl li:last-child::after {
  display: none;
}

.case-col--before .tl li::after {
  background: none;
  border-left: 1px dashed var(--night-line-strong);
}

.case-col--after .tl li::before {
  background: var(--violet-soft);
  box-shadow: 0 0 0 4px rgba(221, 161, 140, 0.15);
}

.case-col--after .tl li::after {
  background: linear-gradient(to bottom, rgba(221, 161, 140, 0.6), rgba(221, 161, 140, 0.15));
}

.tl time {
  font-size: 12px;
  color: var(--night-text-3);
}

.tl p {
  font-size: 15.5px;
  line-height: 1.5;
}

.case-col--before .tl p {
  color: var(--night-text-2);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: var(--s-6) 0 0;
  list-style: none;
  border-top: 1px solid var(--night-line);
}

.case-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--night-text-3);
  box-shadow: inset 0 0 0 1px var(--night-line-strong);
}

.case-tags li::before {
  content: "×";
  font-size: 14px;
  line-height: 1;
}

.case-tags--after li {
  color: var(--night-text);
  box-shadow: inset 0 0 0 1px rgba(47, 191, 113, 0.35);
  background: rgba(47, 191, 113, 0.06);
}

.case-tags--after li::before {
  content: "✓";
  font-size: 12px;
  color: var(--signal-soft);
}

@media (min-width: 900px) {
  .js .case-switch {
    display: none;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  }

  .case-grid[data-view] .case-col {
    display: block;
  }
}

/* Footer AI link reads like the other footer links */
.footer-ai {
  font-weight: 400;
  color: var(--ink-2);
}

.footer-ai:hover {
  color: var(--blue-ink);
}
