/*
 * Scoped additions only.
 * The page shell, typography, spacing, cards and case-study layout remain the
 * archived samuelkraft.com implementation in b1353bf6bb14f783-ef9c9b034b.css.
 */

.touchai-card {
  background: #0b0f19;
}

.touchai-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.touchai-card__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.08) 30%, rgba(7, 11, 20, 0.5) 100%),
    radial-gradient(80% 80% at 50% 35%, transparent 30%, rgba(3, 7, 14, 0.42) 100%);
}

.touchai-card__pill {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(9px);
}

.touchai-card__pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5aa2ff;
}

.touchai-card__window {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  background: white;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.touchai-card__window img {
  display: block;
  width: 100%;
  height: auto;
}

.cp-card {
  color: white;
  background: #0b150d;
}

.cp-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 70% 50%, rgba(125, 164, 89, 0.22) 0%, transparent 67%);
}

.cp-card__copy {
  position: absolute;
  top: 27px;
  left: 24px;
  z-index: 1;
  width: calc(100% - 166px);
  max-width: 190px;
}

.cp-card__eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.cp-card__title {
  margin-top: 8px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #f5f7f1;
}

.cp-card__text {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
}

.cp-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 17px;
}

.cp-card__chips span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.cp-card-phone {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 2;
  width: 132px;
  height: 264px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(150deg, #5b615c 0%, #050805 36%, #1c221d 100%);
  box-shadow:
    0 26px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(1.4deg);
}

.cp-card-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 23px;
  color: #f2f5ea;
  background: linear-gradient(180deg, #131d13 0%, #071008 68%);
}

.cp-card-phone__glow {
  position: absolute;
  top: 105px;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 188, 101, 0.32) 0%, rgba(65, 100, 46, 0.08) 46%, transparent 70%);
  transform: translateX(-50%);
}

.cp-card-phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: 12px;
  border-radius: 99px;
  background: #030403;
  transform: translateX(-50%);
}

.cp-card-phone__status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 0;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}

.cp-card-phone__content {
  position: relative;
  z-index: 2;
  padding: 22px 13px 10px;
}

.cp-card-phone__eyebrow {
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 239, 216, 0.45);
}

.cp-card-phone__title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.cp-card-phone__sub {
  margin-top: 4px;
  font-size: 7px;
  color: rgba(232, 239, 216, 0.45);
}

.cp-card-phone__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: conic-gradient(#b8d58b 0% 42%, rgba(255, 255, 255, 0.07) 42% 100%);
}

.cp-card-phone__ring::before {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #0b140c;
  content: "";
}

.cp-card-phone__ring span {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.cp-card-phone__ring small {
  margin-left: 1px;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.5);
}

.cp-card-phone__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 14px;
}

.cp-card-phone__stat {
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.cp-card-phone__stat span {
  display: block;
  font-size: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.cp-card-phone__stat strong {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.cp-card-phone__nav {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  background: rgba(4, 8, 5, 0.74);
  font-size: 5.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.cp-card-phone__nav span:first-child {
  padding: 3px 5px;
  border-radius: 6px;
  color: #131a10;
  background: #c6dc9e;
}

.cinema-card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 38, 35, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 38, 35, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(110deg, transparent 6%, black 62%);
  -webkit-mask-image: linear-gradient(110deg, transparent 6%, black 62%);
}

.cinema-card {
  background: #eef0ea;
}

.cinema-card__eyebrow {
  position: absolute;
  top: 26px;
  left: 24px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c8781;
}

.cinema-card__copy {
  position: absolute;
  bottom: 26px;
  left: 24px;
  z-index: 2;
  width: calc(100% - 206px);
  max-width: 190px;
}

.cinema-card__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #18221f;
}

.cinema-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.cinema-card__tags span {
  padding: 4px 7px;
  border: 1px solid #cfd6d1;
  border-radius: 99px;
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #68736d;
}

.cinema-ticket {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 160px;
  padding: 16px;
  overflow: hidden;
  border-radius: 15px;
  color: #18221f;
  background: #fbfcf8;
  box-shadow: 0 20px 45px rgba(43, 56, 51, 0.18);
  transform: translateY(-50%) rotate(4deg);
}

.cinema-ticket::before,
.cinema-ticket::after {
  position: absolute;
  top: 61%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef0ea;
  content: "";
}

.cinema-ticket::before {
  left: -8px;
}

.cinema-ticket::after {
  right: -8px;
}

.cinema-ticket__top {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7d8883;
}

.cinema-ticket__title {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cinema-ticket__meta {
  margin-top: 6px;
  font-size: 8px;
  color: #6c7772;
}

.cinema-ticket__seats {
  display: flex;
  gap: 5px;
  margin-top: 20px;
}

.cinema-ticket__seats span {
  padding: 5px 7px;
  border: 1px solid #d7ddd8;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 600;
}

.cinema-ticket__dash {
  margin: 15px -16px;
  border-top: 1px dashed #c7cec9;
}

.cinema-ticket__barcode {
  width: 92px;
  height: 27px;
  background: repeating-linear-gradient(
    90deg,
    #26332e 0 2px,
    transparent 2px 4px,
    #26332e 4px 5px,
    transparent 5px 8px
  );
}

.community-card__tiles {
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  grid-template-columns: repeat(2, 92px);
  gap: 8px;
  opacity: 0.82;
  transform: rotate(-4deg);
}

.community-card {
  background: #101211;
}

.community-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 80% 12%, rgba(183, 216, 206, 0.13), transparent 62%);
}

.community-card__copy {
  position: absolute;
  bottom: 26px;
  left: 24px;
  z-index: 2;
  max-width: 215px;
  color: white;
}

.community-card__eyebrow {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.community-card__title {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.community-card__tile {
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.055);
}

.community-card__tile--accent {
  color: #18302b;
  background: #b7d8ce;
}

.community-card__tile--warm {
  color: #2d2013;
  background: #e8c59c;
}

.community-card__tile b {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.community-card__tile span {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.sdev-card {
  background: #050509;
}

.sdev-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
}

.sdev-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 9, 0.04) 30%, rgba(5, 5, 9, 0.9) 100%);
}

.sdev-card__eyebrow {
  position: absolute;
  top: 22px;
  left: 24px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sdev-card__copy {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: white;
}

.sdev-card__title {
  max-width: 420px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.sdev-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* TouchAI case study */

.touchai-demo {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
  overflow: hidden;
  border-radius: 12px;
  background: #e9edf4;
  cursor: zoom-in;
}

.touchai-demo--workspace {
  background: #f1eee9;
}

.touchai-demo img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 24px 55px -20px rgba(27, 38, 54, 0.25), 0 0 0 1px rgba(27, 38, 54, 0.06);
}

.case-grid {
  display: grid;
  gap: 10px;
}

.case-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card {
  padding: 20px;
  border: 1px solid rgba(37, 39, 37, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}

.case-card__kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand10);
}

.case-card h3 {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.case-card p {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--sand11);
}

.case-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 28px;
  border-radius: 24px;
  background: #111315;
}

.case-flow__step {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: white;
  background: rgba(255, 255, 255, 0.035);
}

.case-flow__step span {
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.case-flow__step strong {
  display: block;
  margin-top: 56px;
  font-size: 16px;
  font-weight: 600;
}

.case-flow__step p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
}

.mimo-partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 24px;
  background: #f5f0e8;
}

.mimo-partner__copy span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8578;
}

.mimo-partner__copy p {
  max-width: 360px;
  margin-top: 30px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #1e1d1b;
}

.mimo-partner img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(232, 92, 10, 0.16);
}

/* CloudPlow case study */

.cp-real-home {
  width: min(100%, 300px);
  max-width: 300px;
  margin: 0 auto 10px;
  padding: 5px;
  border-radius: 40px;
  background:
    linear-gradient(145deg, #6f716c 0%, #262824 12%, #0b0c0a 34%, #080907 66%, #3d3f3a 88%, #1a1b18 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 2px rgba(0, 0, 0, 0.45),
    0 24px 40px rgba(28, 37, 24, 0.18);
}

.cp-real-home img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.cp-console {
  display: block;
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid #e3e3db;
  border-radius: 12px;
  background: #0b0e14;
}

.cp-console img {
  display: block;
  width: 100%;
  height: auto;
}


.cp-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 48px;
  min-height: 800px;
  padding: 60px clamp(28px, 6vw, 100px);
  overflow: hidden;
  border-radius: 12px;
  color: #253124;
  background: #ecede6;
}

.cp-interactive {
  position: relative;
}

.cp-interactive > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cp-showcase__copy {
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.cp-showcase__eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #687460;
}

.cp-showcase__title {
  margin-top: 24px;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #253124;
}

.cp-showcase__copy > p {
  max-width: 360px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.65;
  color: #63705e;
}

.cp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.cp-tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #c9cfc0;
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #53634d;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.cp-tabs label:hover {
  color: #253124;
  border-color: #78866f;
}

#cp-stage:checked ~ .cp-showcase .cp-tabs label[for="cp-stage"],
#cp-plan:checked ~ .cp-showcase .cp-tabs label[for="cp-plan"],
#cp-devices:checked ~ .cp-showcase .cp-tabs label[for="cp-devices"] {
  color: #f4f5ec;
  border-color: #283824;
  background: #283824;
}

#cp-stage:focus-visible ~ .cp-showcase label[for="cp-stage"],
#cp-plan:focus-visible ~ .cp-showcase label[for="cp-plan"],
#cp-devices:focus-visible ~ .cp-showcase label[for="cp-devices"] {
  outline: 2px solid #253124;
  outline-offset: 4px;
}

.cp-showcase__hint {
  margin-top: 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.03em;
  color: #687460 !important;
}

.cp-showcase__art {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.cp-phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1350 / 2760;
  overflow: visible;
  border-radius: 16% / 7.6%;
  background:
    linear-gradient(145deg, #6f716c 0%, #262824 10%, #0b0c0a 32%, #080907 64%, #3d3f3a 88%, #1a1b18 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(0, 0, 0, 0.48),
    0 18px 18px rgba(28, 37, 24, 0.18);
  container-type: inline-size;
}

.cp-phone::after {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3px rgba(0, 0, 0, 0.42);
  content: "";
  pointer-events: none;
}

.cp-phone__island {
  position: absolute;
  top: 1.6%;
  left: 50%;
  z-index: 12;
  width: 26%;
  height: 3.3%;
  border-radius: 99px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  transform: translateX(-50%);
}

.cp-phone__screen {
  position: absolute;
  inset: 2.409% 4.925%;
  z-index: 2;
  overflow: hidden;
  border-radius: 15% / 7%;
  font-size: 4.1cqw;
  line-height: 1.35;
  background: #f4f3e9;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}



.cp-phone__status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.6em 0;
  font-size: 0.75em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #253124;
}

#cp-stage:checked ~ .cp-showcase .cp-phone__status {
  color: white;
}

.cp-phone__status-icons {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.cp-phone__status-icons i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}

.cp-phone__status-icons i:nth-child(1) { height: 3px; }
.cp-phone__status-icons i:nth-child(2) { height: 5px; }
.cp-phone__status-icons i:nth-child(3) { height: 7px; }
.cp-phone__status-icons i:nth-child(4) { height: 9px; }
.cp-phone__status-icons i:nth-child(5) { height: 11px; }

.cp-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  padding: 4.6em 1.4em 2.1em;
  color: #253124;
  background: #f4f3e9;
}

#cp-stage:checked ~ .cp-showcase .cp-screen--stage,
#cp-plan:checked ~ .cp-showcase .cp-screen--plan,
#cp-devices:checked ~ .cp-showcase .cp-screen--devices {
  display: flex;
}

.cp-screen__eyebrow {
  font-size: 0.65em;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #75806d;
}

.cp-screen__title {
  margin-top: 6px;
  font-size: 2.5em;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #253124;
}

.cp-screen__sub {
  margin-top: 5px;
  font-size: 0.8em;
  line-height: 1.6;
  color: #75806d;
}

.cp-screen--stage {
  padding: 0;
}

.cp-stage-photo {
  position: relative;
  flex: 0 0 50%;
  min-height: 0;
  color: white;
  background: #253124;
}

.cp-stage-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-stage-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 22, 11, 0.45), rgba(9, 22, 11, 0.12) 40%, rgba(9, 22, 11, 0.8));
  content: "";
}

.cp-stage-brand {
  position: absolute;
  top: 3.2em;
  left: 1.3em;
  z-index: 1;
  font-size: 1.15em;
  font-weight: 600;
}

.cp-stage-heading {
  position: absolute;
  z-index: 1;
  right: 1.4em;
  bottom: 3.3em;
  left: 1.4em;
}

.cp-stage-heading > span {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d6dfcb;
}

.cp-stage-heading > strong {
  display: block;
  margin-top: 0.15em;
  font-size: 3.4em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.cp-stage-heading > p {
  margin-top: 0.7em;
  font-size: 0.8em;
  color: #d6dfcb;
}

.cp-stage-sheet {
  position: relative;
  margin-top: -1.6em;
  padding: 1.5em 1.3em;
  border-radius: 1.6em 1.6em 0 0;
  background: #f4f3e9;
}

.cp-stage-progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cp-stage-progress span,
.cp-stage-progress small {
  font-size: 0.65em;
  color: #75806d;
}

.cp-stage-progress span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cp-stage-progress strong {
  display: block;
  margin-top: 0.2em;
  font-size: 1.5em;
  font-weight: 600;
}

.cp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 1em;
}

.cp-metric {
  padding: 0.7em;
  border: 1px solid rgba(36, 48, 29, 0.08);
  border-radius: 0.75em;
  background: rgba(255, 255, 255, 0.6);
}

.cp-metric span {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #75806d;
}

.cp-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1em;
  font-weight: 600;
  color: #253124;
}

.cp-decision {
  margin-top: 0.9em;
  padding: 1em;
  border-radius: 1em;
  color: #f4f5ec;
  background: #22351d;
}

.cp-decision > span {
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c1d3ac;
}

.cp-decision > strong {
  display: block;
  margin-top: 0.5em;
  font-size: 1.7em;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.cp-decision > p {
  margin-top: 0.5em;
  font-size: 0.7em;
  line-height: 1.5;
  color: #c1d3ac;
}

.cp-decision > small {
  display: block;
  margin-top: 1em;
  font-size: 0.65em;
}

.cp-notice {
  margin-top: auto;
  padding: 1em;
  border: 1px solid #dbe1d1;
  border-radius: 0.9em;
  background: #e8eddc;
}

.cp-notice span {
  font-size: 0.6em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #63705e;
}

.cp-notice p {
  margin-top: 4px;
  font-size: 0.8em;
  line-height: 1.45;
  color: #3b4b34;
}

.cp-plan-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2.3em;
}

.cp-plan-item {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr);
  gap: 0.7em;
  padding: 1em 0.8em;
  border: 1px solid #dbe1d1;
  border-radius: 0.9em;
  background: rgba(255, 255, 255, 0.6);
}

.cp-plan-item__index {
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 10px;
  font-size: 0.85em;
  color: #53634d;
  background: #e8eddc;
}

.cp-plan-item b {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
  color: #253124;
}

.cp-plan-item p {
  margin-top: 3px;
  font-size: 0.7em;
  line-height: 1.45;
  color: #75806d;
}

.cp-devices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2.3em;
}

.cp-device {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6em;
  padding: 1.2em 0.65em;
  border: 1px solid #dbe1d1;
  border-radius: 0.9em;
  background: rgba(255, 255, 255, 0.6);
}

.cp-device__icon {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  font-size: 0.9em;
  color: #53634d;
  background: #e8eddc;
}

.cp-device b {
  display: block;
  font-size: 0.75em;
  font-weight: 500;
  color: #253124;
}

.cp-device p {
  margin-top: 3px;
  font-size: 0.65em;
  color: #75806d;
}

.cp-device__state {
  padding: 4px 6px;
  border-radius: 99px;
  font-size: 0.5em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #53634d;
  background: #e8eddc;
}

/* Serverless Devs case study */

.sdev-frame {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 20px;
  background: #050509;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.sdev-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  background: #17171b;
}

.sdev-frame__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f3f45;
}

.sdev-frame__bar span {
  margin-left: 7px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.32);
}

.sdev-frame img {
  width: 100%;
  height: auto;
}

.sdev-crop {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #050509;
  cursor: zoom-in;
}

.sdev-crop img {
  width: 100%;
  height: auto;
}

.sdev-crop--architecture {
  padding: clamp(16px, 4vw, 56px);
  background: #111214;
}

.sdev-crop--templates {
  padding: clamp(24px, 4vw, 56px) 0;
  background: #111214;
}

/* Cinema ticketing case study */

.cinema-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  min-height: 580px;
  padding: 55px;
  overflow: hidden;
  border-radius: 24px;
  background: #edf0ea;
}

.cinema-showcase__copy {
  align-self: center;
}

.cinema-showcase__eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #77817c;
}

.cinema-showcase__title {
  max-width: 360px;
  margin-top: 22px;
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #18221f;
}

.cinema-showcase__copy p {
  max-width: 335px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.65;
  color: #63706a;
}

.cinema-streak {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
}

.cinema-streak span {
  height: 6px;
  border-radius: 99px;
  background: #24342f;
}

.cinema-streak span:nth-child(1) { width: 44px; }
.cinema-streak span:nth-child(2) { width: 22px; opacity: 0.44; }
.cinema-streak span:nth-child(3) { width: 11px; opacity: 0.18; }

.cinema-showcase__phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cinema-phone {
  position: relative;
  width: 172px;
  height: 344px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 31px;
  background: #151b18;
  box-shadow: 0 28px 60px rgba(42, 58, 51, 0.24);
}

.cinema-phone--back {
  margin-left: -62px;
  transform: rotate(-6deg) translateY(18px);
}

.cinema-phone--front {
  transform: rotate(3deg);
}

.cinema-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  color: #14201b;
  background: #fbfcf8;
}

.cinema-phone__screen--detail {
  color: white;
  background: linear-gradient(180deg, #18231f 0%, #101613 100%);
}

.cinema-phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 13px;
  border-radius: 99px;
  background: #040504;
  transform: translateX(-50%);
}

.cinema-phone__status {
  display: flex;
  justify-content: space-between;
  padding: 13px 14px 0;
  font-size: 7px;
  color: rgba(20, 32, 27, 0.58);
}

.cinema-phone__screen--detail .cinema-phone__status {
  color: rgba(255, 255, 255, 0.48);
}

.cinema-phone__content {
  padding: 25px 14px 14px;
}

.cinema-phone__eyebrow {
  font-size: 6px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7b8781;
}

.cinema-phone__title {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.cinema-phone__poster {
  height: 132px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 68% 22%, rgba(239, 187, 115, 0.7), transparent 16%),
    linear-gradient(150deg, #1c2b27 0%, #243a33 48%, #18211e 100%);
}

.cinema-phone__poster::after {
  display: block;
  width: 88px;
  height: 88px;
  margin: 23px auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.cinema-phone__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 7px;
  color: #68756f;
}

.cinema-phone__row b {
  font-weight: 600;
  color: #1b2823;
}

.cinema-phone__cta {
  margin-top: 17px;
  padding: 10px;
  border-radius: 10px;
  font-size: 7px;
  font-weight: 600;
  text-align: center;
  color: #f7f9f4;
  background: #192621;
}

.cinema-phone__scan {
  display: grid;
  place-items: center;
  height: 145px;
  margin-top: 15px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 13px;
}

.cinema-phone__scan span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.cinema-phone__code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.cinema-phone__code span {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.cinema-phone__code span:last-child {
  width: 60%;
}

/* Community product case study */

.community-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  min-height: 560px;
  padding: 50px;
  overflow: hidden;
  border-radius: 24px;
  color: #f3f5ee;
  background: #101211;
}

.community-showcase__copy {
  align-self: center;
}

.community-showcase__eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.community-showcase__title {
  max-width: 360px;
  margin-top: 24px;
  font-size: clamp(31px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.community-showcase__copy p {
  max-width: 340px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.community-ui {
  align-self: center;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 9px;
  transform: rotate(-2deg);
}

.community-ui__card {
  min-height: 124px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
}

.community-ui__card:nth-child(1) {
  min-height: 174px;
  color: #15251f;
  background: #b9d8ce;
}

.community-ui__card:nth-child(4) {
  color: #2d2114;
  background: #e8c59c;
}

.community-ui__card span {
  font-size: 7px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.44;
}

.community-ui__card b {
  display: block;
  margin-top: 42px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.community-ui__card p {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.4;
  opacity: 0.48;
}

.component-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background: #ecefe9;
}

.component-stack__item {
  padding: 16px;
  border: 1px solid rgba(23, 31, 28, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.component-stack__item span {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c958f;
}

.component-stack__item b {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: #1c2723;
}

@media (max-width: 767px) {
  .touchai-card__window {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .cp-card__copy {
    left: 20px;
    width: calc(100% - 160px);
  }

  .cp-card-phone {
    right: 14px;
    width: 118px;
    height: 248px;
  }

  .cp-card-phone__content {
    padding-top: 19px;
  }

  .cp-card-phone__ring {
    width: 58px;
    height: 58px;
  }

  .cinema-ticket {
    right: 14px;
    width: 140px;
    padding: 14px;
  }

  .cinema-card__copy {
    bottom: 22px;
    left: 18px;
    width: calc(100% - 158px);
  }

  .cinema-card__title {
    font-size: 18px;
  }

  .cinema-ticket__title {
    font-size: 18px;
  }

  .community-card__tiles {
    grid-template-columns: repeat(2, 76px);
  }

  .community-card__tile {
    min-height: 68px;
    padding: 9px;
  }

  .community-card__copy {
    bottom: 22px;
    left: 18px;
  }

  .community-card__title {
    font-size: 19px;
  }

  .sdev-card__copy {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .sdev-card__title {
    font-size: 19px;
  }

  .case-grid--3,
  .case-grid--4,
  .case-flow {
    grid-template-columns: 1fr;
  }

  .case-flow__step {
    min-height: 120px;
  }

  .case-flow__step strong {
    margin-top: 34px;
  }

  .mimo-partner {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .cp-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    padding: 32px 24px 38px;
  }

  .cp-showcase__title {
    font-size: 39px;
  }

  .cp-phone {
    width: min(100%, 300px);
  }

  .cinema-showcase,
  .community-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 760px;
    padding: 32px 24px 38px;
  }

  .cinema-showcase__phones {
    transform: scale(0.92);
  }

  .community-ui {
    transform: rotate(-1deg);
  }
}

@media (max-width: 379px) {
  .cp-card-phone {
    right: 10px;
    width: 108px;
    height: 238px;
  }

  .cinema-ticket {
    right: 10px;
    width: 128px;
  }

  .community-card__tiles {
    grid-template-columns: repeat(2, 68px);
  }

  .community-card__tile {
    min-height: 62px;
  }
}


/* Plain-text language / theme toggles */
.text-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.text-toggle:hover {
  text-decoration-style: solid;
}

.text-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}


/* Social links + icon controls */
.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--sand11);
  background: transparent;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.icon-button:hover {
  color: var(--sand12);
  background: var(--sandA4);
}

.icon-button:active {
  transform: scale(0.9);
}

.icon-button:focus-visible {
  outline: 1px solid var(--sand12);
  outline-offset: 2px;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.icon-button .icon-sun {
  display: none;
}

html.dark-theme .icon-button .icon-moon {
  display: none;
}

html.dark-theme .icon-button .icon-sun {
  display: block;
}

/* TouchAI-like light sweep */
.glimm-sweep {
  position: fixed;
  inset: -25%;
  z-index: 9999;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 16%, rgba(255, 214, 170, 0.22) 34%, rgba(196, 212, 255, 0.36) 50%, rgba(190, 240, 215, 0.24) 66%, transparent 84%);
  background-size: 220% 220%;
  background-position: 130% 50%;
  filter: blur(22px);
  opacity: 0;
  will-change: background-position, opacity;
}

.glimm-sweep.is-running {
  animation: glimm-sweep 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glimm-sweep {
  0% { opacity: 0; background-position: 130% 50%; }
  16% { opacity: 0.95; }
  56% { opacity: 0.95; }
  100% { opacity: 0; background-position: -30% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .glimm-sweep { display: none; }
}


/* Reserve the same vertical rhythm across English and Chinese. */
[data-i18n="touchai-desc"],
[data-i18n="cloudplow-desc"] {
  min-height: 3em;
}



@media (max-width: 640px) {
  [data-i18n="intro-3"] { min-height: 6em; }
  [data-i18n="touchai-desc"],
  [data-i18n="cloudplow-desc"] { min-height: 6em; }
}

@media (max-width: 379px) {
  [data-i18n="touchai-desc"],
  [data-i18n="cloudplow-desc"] { min-height: 9em; }
  [data-i18n="intro-3"] { min-height: 7.5em; }
}


/* Keep the intro's total height stable across languages without a gap above the last paragraph. */
.intro-block {
  min-height: 350px;
}

@media (max-width: 640px) {
  .intro-block { min-height: 455px; }
}

@media (max-width: 379px) {
  .intro-block { min-height: 526px; }
}
