/* ==========================================================================
   AI Applications - page-specific styles
   Loaded ONLY by ai-applications.html. Everything is namespaced .aiapp-* or
   scoped under .aiapp-page, so nothing here can affect another page.
   No shared main.css rule is modified. Typography, buttons, container and
   spacing are inherited from main.css.
   ========================================================================== */

.aiapp-page {
  --aiapp-ink: #080E1B;
  --aiapp-ink-2: #111B31;
  --aiapp-line: rgba(125, 162, 255, 0.20);
  --aiapp-purple: #7C5CE0;
  --aiapp-blue: #2F6BE0;
  --aiapp-cyan: #0E8FA8;
  --aiapp-indigo: #5457C9;
  --aiapp-teal: #12897C;
}

/* ---------- Hero ------------------------------------------------------- */
/* The canonical homepage header is a transparent overlay built for a dark
   hero, so this hero is dark to match it. No header styling lives here. */

.aiapp-hero {
  padding: 190px 0 110px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #080E1B 0%, #111B31 55%, #0A1324 100%);
}

/* Slow-drifting colour field - the page's only ambient motion */
.aiapp-hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 22% 30%, rgba(99, 102, 241, 0.30) 0%, transparent 62%),
    radial-gradient(34% 34% at 74% 24%, rgba(34, 211, 238, 0.22) 0%, transparent 62%),
    radial-gradient(40% 40% at 62% 78%, rgba(168, 85, 247, 0.24) 0%, transparent 62%),
    radial-gradient(30% 30% at 14% 82%, rgba(45, 212, 191, 0.16) 0%, transparent 62%);
  filter: blur(28px);
  animation: aiappMesh 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aiappMesh {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}

/* Fine grid, anchors the depth so the gradients don't read as soup */
.aiapp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 162, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 162, 255, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(72% 62% at 50% 44%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 44%, #000 0%, transparent 78%);
  pointer-events: none;
}

.aiapp-hero > .container { position: relative; z-index: 1; }

/* main.css hardcodes #fe0605 at `.hero3-section-area .hero-header-area.endtoend h5`
   (0,3,1). Scoped one step above it here rather than editing the shared file. */
.aiapp-hero .hero-header-area.endtoend .aiapp-kicker {
  color: #22D3EE;
  /* main.css sets `background-color: #fe0605 !important` on this selector, so
     !important is the only way back. #fe0605 is the hex flagged as failing AA;
     the AI palette here is cyan. Scoped to this page only. */
  background-color: rgba(34, 211, 238, 0.10) !important;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.aiapp-hero h1 { color: var(--ztc-text-text-1); }

.aiapp-hero p { color: rgba(255, 255, 255, 0.74); }

.aiapp-hero-visual {
  width: 100%;
  height: auto;
  max-width: 660px;
  display: block;
  margin-inline: auto;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(4, 8, 18, 0.55);
}

.aiapp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* header-btn12 is authored near-black for light backgrounds; restyled here
   for the dark hero context only. */
.aiapp-hero-cta .header-btn12 {
  color: var(--ztc-text-text-1);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.aiapp-hero-cta .header-btn12:hover {
  color: var(--ztc-text-text-1);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.10);
}

.aiapp-hero-cta .header-btn11 i,
.aiapp-hero-cta .header-btn12 i,
.aiapp-principles-cta .header-btn11 i {
  transition: transform 0.35s ease;
}

.aiapp-hero-cta a:hover i,
.aiapp-principles-cta a:hover i { transform: translateX(5px); }

@media (max-width: 991px) {
  .aiapp-hero { padding: 150px 0 80px; }
  .aiapp-hero-visual { margin-top: 46px; max-width: 560px; }
}

@media (max-width: 767px) {
  .aiapp-hero { padding: 130px 0 60px; }
  .aiapp-hero-visual { margin-top: 34px; border-radius: 18px; }
}

/* ---------- Composite media --------------------------------------------
   A photograph with an interface card overlapping it. The photo supplies the
   room and the people; the card supplies the proof the software exists. The
   card is drawn at 560x372 with oversized type so it stays readable at the
   ~330px it actually renders at, unlike the detail-page vignettes which are
   drawn for 565px. */

.aiapp-stack { position: relative; padding-bottom: 112px; }

.aiapp-stack-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 34px 76px rgba(4, 8, 18, 0.40);
}

.aiapp-stack-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aiapp-stack-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(178deg, rgba(8,14,27,0) 42%, rgba(8,14,27,0.44) 100%);
  pointer-events: none;
}

.aiapp-stack-card {
  position: absolute;
  left: -6%;
  bottom: 0;
  width: 66%;
  min-width: 250px;
}

.aiapp-stack-card img { width: 100%; height: auto; display: block; }

.aiapp-stack-chip {
  position: absolute;
  top: 24px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 999px;
  background: rgba(10, 16, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s14);
  font-weight: var(--ztc-weight-semibold);
  color: #fff;
  white-space: nowrap;
}

.aiapp-stack-chip i { color: #22D3EE; font-size: 13px; }

@media (max-width: 991px) {
  .aiapp-stack { padding-bottom: 52px; max-width: 620px; margin-inline: auto; }
}

@media (max-width: 575px) {
  /* Hang the card further below so it covers less of an already-short photo. */
  .aiapp-stack { padding-bottom: 130px; }
  .aiapp-stack-photo { border-radius: 18px; }
  .aiapp-stack-card { left: 0; width: 90%; }
  .aiapp-stack-chip { top: 14px; right: 10px; padding: 8px 14px; }
}

/* ---------- Hero proof strip ------------------------------------------- */

.aiapp-proof {
  margin-top: 74px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.aiapp-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.aiapp-proof-item:first-child { border-left: 0; padding-left: 0; }
.aiapp-proof-item:last-child { padding-right: 0; }

.aiapp-proof-item i { color: #22D3EE; font-size: 16px; line-height: 1.6; flex: 0 0 auto; }

.aiapp-proof-item span {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 767px) {
  .aiapp-proof { grid-template-columns: 1fr; gap: 15px; margin-top: 54px; }
  .aiapp-proof-item { border-left: 0; padding: 0; }
}

/* ---------- Application cards ----------------------------------------- */

.aiapp-col { display: flex; }

.aiapp-card {
  --aiapp-accent: var(--aiapp-blue);
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--ztc-border-border-1);
  border-radius: 16px;
  padding: 34px 30px 32px;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.aiapp-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--aiapp-accent) 20%, transparent) 0%, transparent 70%);
  opacity: 0.75;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.aiapp-card:hover,
.aiapp-card:focus-within {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--aiapp-accent) 42%, transparent);
  box-shadow: 0 18px 40px rgba(8, 14, 27, 0.10);
}

.aiapp-card:hover::before { opacity: 1; }

.aiapp-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aiapp-accent);
  background: color-mix(in srgb, var(--aiapp-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--aiapp-accent) 22%, transparent);
  margin-bottom: 22px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.aiapp-card:hover .aiapp-card-icon {
  transform: translateY(-2px) scale(1.05);
  background: color-mix(in srgb, var(--aiapp-accent) 16%, #fff);
}

.aiapp-card-icon svg { width: 30px; height: 30px; display: block; }

.aiapp-card-cat {
  display: inline-block;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s12);
  font-weight: var(--ztc-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aiapp-accent);
  margin-bottom: 10px;
}

.aiapp-card h3 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s24);
  line-height: 1.3;
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-3);
  margin-bottom: 12px;
}

.aiapp-card p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.65;
  color: var(--ztc-text-text-4);
  margin-bottom: 0;
}


.aiapp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  font-weight: var(--ztc-weight-semibold);
  color: var(--aiapp-accent);
  transition: gap .35s ease, color .35s ease;
}

.aiapp-card-link i { font-size: 13px; transition: transform .35s ease; }
.aiapp-card:hover .aiapp-card-link i { transform: translateX(4px); }
.aiapp-card-link:hover { color: var(--aiapp-accent); }

.aiapp-card.is-learning { --aiapp-accent: var(--aiapp-purple); }
.aiapp-card.is-talent   { --aiapp-accent: var(--aiapp-blue); }
.aiapp-card.is-desk     { --aiapp-accent: var(--aiapp-cyan); }
.aiapp-card.is-help     { --aiapp-accent: var(--aiapp-indigo); }
.aiapp-card.is-agree    { --aiapp-accent: var(--aiapp-teal); }

@media (max-width: 767px) {
  .aiapp-card { padding: 28px 24px; }
  .aiapp-card-icon { width: 56px; height: 56px; margin-bottom: 18px; }
}

/* ---------- How they work (principles) -------------------------------- */

.aiapp-principles {
  background: var(--aiapp-ink);
  position: relative;
  overflow: hidden;
}

.aiapp-principles::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44% 58% at 78% 22%, rgba(99, 102, 241, 0.20) 0%, transparent 68%),
    radial-gradient(40% 52% at 14% 84%, rgba(168, 85, 247, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.aiapp-principles > .container { position: relative; z-index: 1; }

.aiapp-principles .aiapp-kicker { color: #22D3EE; }

.aiapp-principles h2 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s40);
  line-height: 1.25;
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-1);
  margin-bottom: 16px;
}

.aiapp-principles > .container > .row > div > p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s18);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .aiapp-principles h2 { font-size: var(--ztc-font-size-font-s30); }
}

.aiapp-principle {
  height: 100%;
  padding: 34px 30px;
  border-radius: 16px;
  border: 1px solid var(--aiapp-line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.aiapp-principle:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 162, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.aiapp-principle-num {
  display: block;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s14);
  font-weight: var(--ztc-weight-semibold);
  letter-spacing: 0.14em;
  color: #22D3EE;
  margin-bottom: 18px;
}

.aiapp-principle h3 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s22);
  line-height: 1.35;
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-1);
  margin-bottom: 12px;
}

.aiapp-principle p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
}

/* ---------- Consultation section -------------------------------------- */
/* The shared section carries a photographic background set inline, which
   belongs to a different palette. Replaced here with the page's own field so
   the form reads as part of this page. Structure and markup are untouched. */

.aiapp-page .contact1-section-area {
  background-image: none !important;
  background: linear-gradient(135deg, #0A1324 0%, #111B31 52%, #080E1B 100%) !important;
}

.aiapp-page .contact1-section-area::after {
  background:
    radial-gradient(46% 60% at 80% 18%, rgba(34, 211, 238, 0.16) 0%, transparent 66%),
    radial-gradient(42% 56% at 12% 88%, rgba(168, 85, 247, 0.18) 0%, transparent 66%);
  opacity: 1;
}

.aiapp-page .contact1-section-area .contact-submit-boxarea {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--aiapp-line);
  border-radius: 16px;
}


/* ---------- Hero trust line ------------------------------------------- */

.aiapp-trust {
  margin-top: 26px;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s14);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aiapp-trust i { color: #22D3EE; font-size: 13px; }
.aiapp-trust span.sep { opacity: 0.4; }


/* ---------- Card preview media ----------------------------------------- */

.aiapp-card { padding: 0; display: flex; flex-direction: column; }

.aiapp-card-media {
  border-bottom: 1px solid var(--ztc-border-border-1);
  background: color-mix(in srgb, var(--aiapp-accent) 4%, #fff);
  overflow: hidden;
}
.aiapp-card-media img { width: 100%; height: auto; display: block; }

.aiapp-card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.aiapp-card-body .aiapp-card-icon { margin-bottom: 18px; }
.aiapp-card-link { margin-top: auto; padding-top: 18px; }

@media (max-width: 767px) { .aiapp-card-body { padding: 24px 22px 26px; } }

/* ---------- Portfolio map ---------------------------------------------- */

.aiapp-map {
  background: var(--aiapp-ink);
  position: relative;
  overflow: hidden;
}

.aiapp-map::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 58% at 76% 20%, rgba(99,102,241,0.20) 0%, transparent 68%),
    radial-gradient(42% 52% at 14% 84%, rgba(168,85,247,0.16) 0%, transparent 68%);
  pointer-events: none;
}

.aiapp-map > .container { position: relative; z-index: 1; }
.aiapp-map .aiapp-kicker { color: #22D3EE; }

.aiapp-map h2 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s40);
  line-height: 1.25;
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-1);
  margin-bottom: 16px;
}

.aiapp-map > .container > .row > div > p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s18);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0;
}

.aiapp-map-figure {
  margin-top: 46px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(125,162,255,0.18);
  box-shadow: 0 30px 70px rgba(4,8,18,0.5);
}
.aiapp-map-figure img { width: 100%; height: auto; display: block; }

.aiapp-map-hint { display: none; }

@media (max-width: 991px) {
  /* Keep the map legible instead of shrinking its labels past readability:
     scroll inside the figure, never the page. */
  .aiapp-map-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .aiapp-map-figure img { min-width: 760px; }
  .aiapp-map-hint {
    display: block;
    margin-top: 12px;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s14);
    color: rgba(255,255,255,0.5);
    text-align: center;
  }
}


@media (max-width: 767px) { .aiapp-map h2 { font-size: var(--ztc-font-size-font-s30); } }

/* ---------- Comparison matrix ------------------------------------------ */

.aiapp-matrix {
  border: 1px solid var(--ztc-border-border-1);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.aiapp-matrix-head,
.aiapp-matrix-row {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr .95fr 1.2fr 118px;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
}

.aiapp-matrix-head {
  background: var(--ztc-bg-bg-1);
  border-bottom: 1px solid var(--ztc-border-border-1);
}

.aiapp-matrix-head span {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s12);
  font-weight: var(--ztc-weight-semibold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ztc-text-text-11);
}

.aiapp-choose { background: var(--ztc-bg-bg-1); }

.aiapp-matrix-row {
  --aiapp-accent: var(--aiapp-blue);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--ztc-border-border-1);
  position: relative;
  transition: background .35s ease;
}
.aiapp-matrix-row:last-child { border-bottom: 0; }

.aiapp-matrix-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--aiapp-accent);
  opacity: 0;
  transition: opacity .35s ease;
}

.aiapp-matrix-row:hover { background: color-mix(in srgb, var(--aiapp-accent) 4%, #fff); }
.aiapp-matrix-row:hover::before { opacity: 1; }

.aiapp-matrix-name {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s18);
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-3);
}

.aiapp-matrix-dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--aiapp-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--aiapp-accent) 26%, transparent);
  color: var(--aiapp-accent);
}
.aiapp-matrix-dot svg { width: 17px; height: 17px; }

.aiapp-matrix-row p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.55;
  color: var(--ztc-text-text-4);
  margin: 0;
}

.aiapp-matrix-row .aiapp-matrix-go {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s14);
  font-weight: var(--ztc-weight-semibold);
  color: var(--aiapp-accent);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s ease;
}
.aiapp-matrix-row:hover .aiapp-matrix-go { gap: 12px; }

.aiapp-matrix-row.is-learning { --aiapp-accent: var(--aiapp-purple); }
.aiapp-matrix-row.is-talent   { --aiapp-accent: var(--aiapp-blue); }
.aiapp-matrix-row.is-desk     { --aiapp-accent: var(--aiapp-cyan); }
.aiapp-matrix-row.is-help     { --aiapp-accent: var(--aiapp-indigo); }
.aiapp-matrix-row.is-agree    { --aiapp-accent: var(--aiapp-teal); }

@media (max-width: 991px) {
  .aiapp-matrix-head { display: none; }
  .aiapp-matrix-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 24px;
  }
  .aiapp-matrix-row p::before {
    display: block;
    font-size: var(--ztc-font-size-font-s12);
    font-weight: var(--ztc-weight-semibold);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ztc-text-text-11);
    margin-bottom: 5px;
  }
  .aiapp-matrix-row p:nth-of-type(1)::before { content: "The workflow it owns"; }
  .aiapp-matrix-row p:nth-of-type(2)::before { content: "Who runs it"; }
  .aiapp-matrix-row p:nth-of-type(3)::before { content: "What it replaces"; }
  .aiapp-matrix-row::before { opacity: 1; }
}

/* ---------- Differentiator rows --------------------------------------- */

.aiapp-why { background: #fff; }

/* The argument list is roughly twice the height of a 3:2 photo, which left a
   dead gap under the media column. The photo now stretches to the column
   height instead, so both sides finish together. Source is portrait. */
.aiapp-why-media { position: relative; }

@media (min-width: 992px) {
  .aiapp-why-media,
  .aiapp-why-media .aiapp-stack { height: 100%; }
  .aiapp-why-media .aiapp-stack { padding-bottom: 0; }
  .aiapp-why-media .aiapp-stack-photo {
    aspect-ratio: auto;
    height: 100%;
    min-height: 480px;
  }
  /* The slot lands near 5:8, so the source must be tall; bias the crop upward
     to keep faces in frame rather than centring on torsos. */
  .aiapp-why-media .aiapp-stack-photo img { object-position: center 32%; }
  .aiapp-why-media .aiapp-stack-card { left: -6%; bottom: 30px; width: 66%; }
}

@media (max-width: 991px) {
  .aiapp-why-media .aiapp-stack-photo { aspect-ratio: 1 / 1; }
}

.aiapp-why-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--ztc-border-border-1);
  align-items: start;
}

.aiapp-why-row:last-child { border-bottom: 1px solid var(--ztc-border-border-1); }

.aiapp-why-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aiapp-accent, var(--aiapp-indigo));
  background: color-mix(in srgb, var(--aiapp-accent, var(--aiapp-indigo)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--aiapp-accent, var(--aiapp-indigo)) 22%, transparent);
}

.aiapp-why-icon svg { width: 22px; height: 22px; }

.aiapp-why-row h3 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s20);
  line-height: 1.34;
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-3);
  margin-bottom: 12px;
}

.aiapp-why-row p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.68;
  color: var(--ztc-text-text-4);
  margin-bottom: 0;
}

.aiapp-why-row .aiapp-breaks {
  margin-top: 12px;
  padding: 11px 15px;
  font-size: var(--ztc-font-size-font-s14);
  border-radius: 12px;
  background: #FAF6FB;
  border-left: 3px solid var(--aiapp-accent, var(--aiapp-indigo));
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.68;
  color: var(--ztc-text-text-6);
}

.aiapp-why-row .aiapp-breaks strong { color: var(--ztc-text-text-3); }

.aiapp-why-row.is-1 { --aiapp-accent: var(--aiapp-indigo); }
.aiapp-why-row.is-2 { --aiapp-accent: var(--aiapp-purple); }
.aiapp-why-row.is-3 { --aiapp-accent: var(--aiapp-cyan); }
.aiapp-why-row.is-4 { --aiapp-accent: var(--aiapp-teal); }

@media (max-width: 767px) {
  .aiapp-why-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .aiapp-why-row h3 { font-size: var(--ztc-font-size-font-s18); }
}

/* ---------- Who it's for ---------------------------------------------- */

.aiapp-for-card {
  height: 100%;
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid var(--aiapp-line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.aiapp-for-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 162, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.aiapp-for-card h3 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s20);
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-1);
  margin-bottom: 10px;
}

.aiapp-for-card p {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
}

.aiapp-for-card .aiapp-for-app {
  display: block;
  margin-top: 14px;
  font-size: var(--ztc-font-size-font-s14);
  font-weight: var(--ztc-weight-semibold);
  color: #7DD3FC;
}

/* ---------- Reduced motion -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .aiapp-page *,
  .aiapp-page *::before,
  .aiapp-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .aiapp-hero::before { animation: none; }
  /* Keep AOS-revealed content permanently visible without animation */
  .aiapp-page [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}
