/* v17: project types on paper, with light, tilted, translucent interface mock-ups built in code. */

.types {
  padding: 40px 0 120px;
}

.types-kicker {
  margin-top: 64px;
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.types-tabs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.types-tabs button {
  position: relative;
  min-height: 84px;
  padding: 18px 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: clamp(0.98rem, 1.4vw, 1.3rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
  transition: color 250ms ease;
}

.types-tabs button:first-child {
  border-left: 0;
  padding-left: 0;
}

.types-tabs button small {
  padding-top: 0.35em;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.types-tabs button::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}

.types-tabs button[aria-selected="true"] {
  color: var(--text);
}

.types-tabs button[aria-selected="true"] small {
  color: var(--gold-ink);
}

.types-tabs button[aria-selected="true"]::before {
  transform: scaleX(1);
}

.types-tabs button:hover {
  color: var(--text);
}

.type-panel {
  margin-top: 40px;
  animation: panel-in 800ms var(--ease-settle);
}

.type-panel[hidden] {
  display: none;
}

.type-caption {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
}

.type-caption span:last-child {
  color: var(--text-3);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

/* The mock: a translucent window seen at an angle, with two ghost layers behind it,
   fading into the paper on the far side and at the bottom. */

.mock {
  position: relative;
  height: clamp(380px, 42vw, 560px);
  margin: 18px -8px 0;
  perspective: 2400px;
  perspective-origin: 20% 0%;
  -webkit-mask-image:
    linear-gradient(90deg, #000 70%, transparent 100%),
    linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 70%, transparent 100%),
    linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}

.mock-tilt {
  position: absolute;
  inset: 4% 0 0 2%;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-14deg) rotateZ(2.2deg);
  transform-origin: 0 0;
  transition: transform 1200ms var(--ease-settle);
}

.type-panel[hidden] .mock-tilt,
.mock-tilt.is-entering {
  transform: rotateX(26deg) rotateY(-22deg) rotateZ(4deg) translateY(30px);
}

.mock-ghost {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.06);
  transform: translate3d(-14px, 10px, -40px);
}

.mock-ghost.is-2 {
  transform: translate3d(-28px, 20px, -80px);
  background: rgba(255, 255, 255, 0.25);
}

.mock-win {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: rgba(252, 251, 247, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(23, 26, 31, 0.08),
    0 60px 100px -50px rgba(23, 26, 31, 0.35),
    0 20px 40px -30px rgba(23, 26, 31, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #171a1f;
  font-size: 13px;
}

.m-editor {
  grid-template-columns: 200px minmax(0, 1fr) 220px;
}

.m-side {
  padding: 20px 14px;
  border-right: 1px solid rgba(23, 26, 31, 0.07);
  background: rgba(244, 240, 232, 0.55);
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px 4px;
  font-size: 14px;
  font-weight: 700;
}

.m-brand i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--gold);
}

.m-cap {
  margin: 14px 0 6px 6px;
  color: rgba(23, 26, 31, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-side ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  list-style: none;
}

.m-side li {
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: rgba(23, 26, 31, 0.62);
}

.m-side li i {
  width: 11px;
  height: 13px;
  border: 1.4px solid currentColor;
  border-radius: 2.5px;
  opacity: 0.6;
}

.m-side li b {
  margin-left: auto;
  color: rgba(23, 26, 31, 0.45);
  font-size: 11px;
}

.m-side li.is-on {
  background: rgba(23, 26, 31, 0.06);
  color: #171a1f;
  font-weight: 650;
}

.m-blocks li b {
  width: 6px;
  height: 10px;
  margin: 0;
  background: radial-gradient(circle, rgba(23, 26, 31, 0.35) 1px, transparent 1.4px) 0 0 / 3px 3.4px;
}

.m-blocks li:nth-child(n + 2) {
  opacity: 0.6;
}

.m-autos li {
  padding: 7px 8px 7px 16px;
  position: relative;
  font-size: 11.5px;
}

.m-autos li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.m-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.m-top {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(23, 26, 31, 0.07);
}

.m-top b {
  font-size: 15px;
  font-weight: 650;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(23, 26, 31, 0.06);
  color: rgba(23, 26, 31, 0.6);
  font-size: 11px;
}

.m-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-ink);
}

.m-crumb {
  color: rgba(23, 26, 31, 0.45);
}

.m-top-r {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.m-top-r em,
.m-btns em,
.m-sitenav em {
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.14);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.m-top-r em.is-dark,
.m-btns em.is-dark {
  background: #171a1f;
  color: #f4f0e8;
  box-shadow: none;
}

.m-canvas {
  position: relative;
  padding: 16px 18px;
  overflow: hidden;
  background: rgba(244, 240, 232, 0.35);
}

/* Editor */

.m-site {
  padding: 12px 16px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.07);
}

.m-sitenav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(23, 26, 31, 0.55);
  font-size: 11px;
}

.m-sitenav i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #171a1f;
}

.m-sitenav em {
  margin-left: auto;
}

.m-hero {
  position: relative;
  margin-top: 16px;
  padding: 28px 24px 22px;
  border-radius: 10px;
}

.m-hero.is-selected {
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px rgba(199, 168, 107, 0.14);
  animation: block-pulse 3.2s ease-in-out infinite;
}

@keyframes block-pulse {
  50% {
    box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 10px rgba(199, 168, 107, 0.06);
  }
}

.m-tag {
  position: absolute;
  top: -9px;
  left: -1px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--gold);
  color: #171a1f;
  font-size: 10px;
  font-weight: 700;
}

.m-h1 {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.m-h1 span {
  color: rgba(23, 26, 31, 0.4);
}

.m-sub {
  margin-top: 10px;
  color: rgba(23, 26, 31, 0.55);
  font-size: 12px;
}

.m-btns {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.m-feats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.m-feats p {
  padding: 12px;
  display: grid;
  gap: 8px;
  border-radius: 10px;
  background: rgba(244, 240, 232, 0.7);
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.06);
  font-size: 11.5px;
}

.m-feats i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.m-feats b {
  display: block;
  height: 4px;
  width: 70%;
  border-radius: 4px;
  background: rgba(23, 26, 31, 0.08);
}

.m-inspect {
  padding: 18px 16px;
  border-left: 1px solid rgba(23, 26, 31, 0.07);
  background: rgba(255, 255, 255, 0.55);
}

.m-inspect label {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  color: rgba(23, 26, 31, 0.5);
  font-size: 10.5px;
  font-weight: 600;
}

.m-field {
  padding: 8px 9px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.1);
  color: #171a1f;
  font-size: 11.5px;
  font-weight: 500;
}

.m-caret {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--gold-ink);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.m-toggle {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.m-toggle i {
  position: relative;
  width: 26px;
  height: 15px;
  border-radius: 99px;
  background: rgba(23, 26, 31, 0.15);
}

.m-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

.m-toggle i.is-on {
  background: var(--gold);
}

.m-toggle i.is-on::after {
  left: 13px;
}

/* Portal */

.m-search {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.1);
  color: rgba(23, 26, 31, 0.4);
  font-size: 11.5px;
}

.m-filters {
  margin: 12px 0;
  display: flex;
  gap: 6px;
}

.m-filters em {
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.12);
  color: rgba(23, 26, 31, 0.6);
  font-size: 11px;
  font-style: normal;
}

.m-filters em b {
  margin-left: 4px;
  color: rgba(23, 26, 31, 0.4);
}

.m-filters em.is-on {
  background: #171a1f;
  color: #f4f0e8;
  box-shadow: none;
}

.m-filters em.is-on b {
  color: var(--gold);
}

.m-table p {
  padding: 9px 4px;
  display: grid;
  grid-template-columns: 0.6fr 1.2fr 1fr 0.9fr 1fr 0.7fr;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(23, 26, 31, 0.06);
  font-size: 11.5px;
}

.m-table p span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.m-table .m-th {
  color: rgba(23, 26, 31, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m-table i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(199, 168, 107, 0.25);
  color: var(--gold-ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.m-table em {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
}

.st-run {
  background: rgba(199, 168, 107, 0.2);
  color: var(--gold-ink);
}

.st-rev {
  background: rgba(23, 26, 31, 0.07);
}

.st-done {
  background: #171a1f;
  color: #f4f0e8;
}

.st-new {
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.2);
}

.type-panel:not([hidden]) .m-table p:not(.m-th) {
  animation: row-in 700ms var(--ease-settle) backwards;
}

.m-table p:nth-child(3) { animation-delay: 80ms; }
.m-table p:nth-child(4) { animation-delay: 160ms; }
.m-table p:nth-child(5) { animation-delay: 240ms; }
.m-table p:nth-child(6) { animation-delay: 320ms; }

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.m-pager {
  margin-top: 10px;
  color: rgba(23, 26, 31, 0.45);
  font-size: 11px;
}

/* CRM */

.m-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.m-col {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 650;
}

.m-col b {
  color: rgba(23, 26, 31, 0.4);
}

.m-card {
  margin-bottom: 8px;
  padding: 10px;
  display: grid;
  gap: 3px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.07), 0 6px 14px -10px rgba(23, 26, 31, 0.3);
  font-size: 11.5px;
}

.m-card span {
  color: rgba(23, 26, 31, 0.5);
  font-size: 10.5px;
}

.m-card em {
  color: var(--gold-ink);
  font-style: normal;
  font-weight: 650;
}

.type-panel:not([hidden]) .m-card.is-moving {
  animation: card-move 4.5s var(--ease-io) infinite;
}

@keyframes card-move {
  0%,
  25% {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.07), 0 6px 14px -10px rgba(23, 26, 31, 0.3);
  }
  45%,
  75% {
    transform: translate(calc(100% + 10px), 4px) rotate(-1.5deg);
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 18px 30px -16px rgba(23, 26, 31, 0.4);
  }
  95%,
  100% {
    transform: none;
  }
}

.m-rule {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 190px;
  padding: 12px;
  display: grid;
  gap: 3px;
  border-radius: 10px;
  background: #171a1f;
  color: #f4f0e8;
  font-size: 11.5px;
  box-shadow: 0 20px 40px -20px rgba(23, 26, 31, 0.6);
}

.m-rule small {
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-rule span {
  color: rgba(244, 240, 232, 0.6);
  font-size: 10.5px;
}

/* Analytics */

.m-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.m-kpis p {
  padding: 12px;
  display: grid;
  gap: 2px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.07);
}

.m-kpis span {
  color: rgba(23, 26, 31, 0.5);
  font-size: 10.5px;
}

.m-kpis b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.m-kpis em {
  color: var(--gold-ink);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
}

.m-row2 {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
}

.m-chart,
.m-funnel {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.07);
  font-size: 11.5px;
  font-weight: 600;
}

.m-chart svg {
  display: block;
  width: 100%;
  height: 120px;
  margin-top: 8px;
}

.m-area {
  fill: rgba(199, 168, 107, 0.16);
}

.m-line {
  fill: none;
  stroke: var(--gold-ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.type-panel:not([hidden]) .m-line {
  animation: draw-line 1800ms var(--ease-settle) 300ms forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.m-funnel {
  display: grid;
  align-content: start;
  gap: 9px;
}

.m-funnel span {
  display: grid;
  gap: 4px;
  color: rgba(23, 26, 31, 0.55);
  font-size: 10.5px;
  font-weight: 500;
}

.m-funnel i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(199, 168, 107, 0.4));
  transform-origin: left;
}

.m-funnel span:nth-child(2) i { width: 100%; }
.m-funnel span:nth-child(3) i { width: 46%; }
.m-funnel span:nth-child(4) i { width: 18%; }
.m-funnel span:nth-child(5) i { width: 9%; }

.type-panel:not([hidden]) .m-funnel i {
  animation: bar-in 1200ms var(--ease-settle) backwards;
}

@keyframes bar-in {
  from {
    transform: scaleX(0);
  }
}

/* AI assistant */

.m-ai {
  grid-template-columns: 220px minmax(0, 1fr) 200px;
}

.m-inbox li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 8px;
}

.m-inbox li i {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(199, 168, 107, 0.25);
  color: var(--gold-ink);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  opacity: 1;
}

.m-inbox li span {
  color: rgba(23, 26, 31, 0.5);
  font-size: 10.5px;
}

.m-chat {
  display: grid;
  align-content: start;
  gap: 10px;
}

.m-msg {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.45;
}

.m-msg.is-in {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.08);
}

.m-msg.is-out {
  justify-self: end;
  background: #171a1f;
  color: #f4f0e8;
}

.m-msg.is-out small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 10px;
}

.m-typing {
  display: inline-flex;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.08);
  justify-self: start;
}

.m-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(23, 26, 31, 0.35);
  animation: typing 1.2s ease-in-out infinite;
}

.m-typing i:nth-child(2) { animation-delay: 0.15s; }
.m-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  40% {
    transform: translateY(-3px);
    background: var(--gold-ink);
  }
}

.m-conf {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.m-meter {
  height: 6px;
  margin-top: 6px;
  border-radius: 4px;
  background: rgba(23, 26, 31, 0.08);
  overflow: hidden;
}

.m-meter i {
  display: block;
  width: 92%;
  height: 100%;
  background: var(--gold);
}

.m-src {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 31, 0.08);
  font-size: 11px;
}

/* Copy row and notes under each mock */

.type-copy {
  margin-top: 8px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line-strong);
}

.type-copy h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.type-copy p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.type-copy .chips {
  margin: 0;
  max-width: 280px;
}

.type-time small {
  display: block;
  color: var(--text-3);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.type-time b {
  font-weight: 650;
  white-space: nowrap;
}

.type-notes {
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
}

.type-notes h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.type-notes p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.86rem;
}

.type-disclaimer {
  margin-top: 26px;
  color: var(--text-3);
  font-size: 0.78rem;
}

/* Services: the midnight demo block sits inside the paper page. */

.demos {
  margin-top: 120px;
}

.demos .tab-panel .product-stage {
  min-height: 520px;
}

@media (max-width: 1100px) {
  .type-copy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .m-inspect,
  .m-ai > aside:last-child {
    display: none;
  }

  .m-editor,
  .m-ai {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .types-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .types-tabs button,
  .types-tabs button:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .type-notes {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mock {
    height: 340px;
  }

  .mock-win {
    font-size: 11px;
  }

  .m-side {
    display: none;
  }

  .mock-win,
  .m-editor,
  .m-ai {
    grid-template-columns: minmax(0, 1fr);
  }

  .m-kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-kanban > div:nth-child(n + 3),
  .m-rule {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-tilt,
  .m-hero.is-selected,
  .m-caret,
  .m-card.is-moving,
  .m-typing i,
  .type-panel,
  .m-table p,
  .m-funnel i {
    animation: none !important;
    transition: none;
  }

  .m-line {
    stroke-dashoffset: 0;
  }
}

/* AI page */

.ai-cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ai-card {
  padding: 30px;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-radius: var(--card-r);
  background: #fbf9f4;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ai-card small {
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ai-card h3 {
  font-size: 1.7rem;
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ai-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.ai-card ul {
  margin: 0;
  padding: 14px 0 0;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text-2);
  font-size: 0.86rem;
}

.ai-card.is-ink {
  --text-2: rgba(244, 240, 232, 0.7);
  --line: rgba(244, 240, 232, 0.14);
  background: var(--ink-deep);
  box-shadow: none;
  color: var(--paper);
}

.ai-card.is-ink small {
  color: var(--gold);
}

@media (max-width: 860px) {
  .ai-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  .need-grid > a.need-card:nth-child(5) {
    grid-column: 1 / 13;
    min-height: 360px;
  }
}
