/* Shared service-page shell (also used by application-management-toronto.html) */

.app-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.app-text-link {
  color: #dbe7f8;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.app-text-link:hover {
  color: #6fc7ff;
}

.package-architecture {
  margin-top: 48px;
  scroll-margin-top: 110px;
}

.package-section-head {
  max-width: 780px;
  margin: 0 auto 22px;
  text-align: center;
}

.package-section-head h2 {
  margin: 6px 0 10px;
  color: #f7fbff;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.12;
}

.package-section-head > p:last-child {
  margin: 0;
  color: #aebbd0;
  line-height: 1.7;
}

.package-architecture .plan-card h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 1.35rem;
}

.build-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

 .management-grid .plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.management-grid .plan-card > ul {
  flex: 1;
}

.management-grid .card-cta {
  margin-top: auto;
}

.plan-footnote {
  margin: 4px 0 18px;
  color: #8292aa;
  font-size: 0.82rem;
  line-height: 1.55;
}

.management-policy-note {
  max-width: 900px;
  margin: 18px auto 0;
  color: #8292aa;
  font-size: 0.85rem;
  line-height: 1.65;
  text-align: center;
}

.app-service-page {
  padding-bottom: 72px;
}

.service-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 14px;
  color: #7f90aa;
  font-size: 0.78rem;
}

.service-breadcrumb a {
  color: #aebbd0;
  text-decoration: none;
}

.service-breadcrumb a:hover {
  color: #6fc7ff;
}

.app-service-hero {
  margin-top: 0;
  text-align: center;
}

.app-service-hero .dm-hero-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 16em;
}

.app-service-hero .dm-hero-p {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

.app-service-hero .app-hero-actions {
  justify-content: center;
}

.app-development-page .service-name-pill {
  padding: 12px 27px;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.1em;
  box-shadow:
    0 20px 56px rgba(0, 111, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* AI-native delivery comparison */
.ai-native-section {
  position: relative;
  margin-top: 48px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(91, 151, 226, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 48%, rgba(71, 82, 255, 0.14), transparent 28%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(145deg, rgba(10, 20, 35, .98), rgba(5, 10, 18, .99));
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.ai-native-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: 50%;
  top: 47%;
  border: 1px solid rgba(109, 128, 255, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 55px rgba(77, 92, 255, .025), 0 0 0 110px rgba(77, 92, 255, .015);
  pointer-events: none;
}

.ai-native-intro {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}

.ai-native-intro h2 {
  margin: 7px 0 12px;
  color: #f6f9ff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.ai-native-intro > p:last-child {
  margin: 0 auto;
  max-width: 700px;
  color: #a9b6c9;
  line-height: 1.75;
}

.ai-native-compare {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.ai-compare-column {
  overflow: hidden;
  border: 1px solid rgba(121, 143, 173, .25);
  border-radius: 20px;
  background: rgba(8, 15, 25, .82);
}

.ai-compare-column header {
  min-height: 158px;
  padding: 24px;
  border-bottom: 1px solid rgba(121, 143, 173, .2);
}

.ai-compare-column header > span {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-compare-column h3 {
  margin: 0 0 8px;
  color: #edf4ff;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

.ai-compare-column header p {
  margin: 0;
  color: #8f9db1;
  font-size: .83rem;
  line-height: 1.6;
}

.ai-compare-column ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-compare-column li {
  position: relative;
  min-height: 92px;
  padding: 19px 20px 19px 48px;
  border-bottom: 1px solid rgba(121, 143, 173, .14);
}

.ai-compare-column li:last-child { border-bottom: 0; }

.ai-compare-column li::before {
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 900;
}

.ai-compare-column li strong,
.ai-compare-column li span {
  display: block;
}

.ai-compare-column li strong {
  margin-bottom: 5px;
  color: #dbe5f2;
  font-size: .88rem;
}

.ai-compare-column li span {
  color: #8290a3;
  font-size: .75rem;
  line-height: 1.55;
}

.ai-compare-conventional {
  border-color: rgba(125, 139, 159, .25);
  filter: saturate(.72);
}

.ai-compare-conventional header > span {
  background: rgba(126, 141, 164, .12);
  color: #aab5c4;
}

.ai-compare-conventional li::before {
  content: "-";
  border: 1px solid rgba(142, 156, 176, .3);
  color: #8996a8;
  background: rgba(111, 125, 145, .08);
}

.ai-compare-aimlake {
  border-color: rgba(69, 143, 255, .48);
  background:
    linear-gradient(150deg, rgba(34, 75, 143, .22), transparent 42%),
    rgba(7, 16, 29, .94);
  box-shadow: 0 20px 55px rgba(17, 72, 158, .14);
}

.ai-compare-aimlake header {
  border-bottom-color: rgba(75, 147, 255, .28);
}

.ai-compare-aimlake header > span {
  background: rgba(35, 124, 255, .14);
  color: #78c9ff;
}

.ai-compare-aimlake li::before {
  content: "✓";
  border: 1px solid rgba(74, 166, 255, .46);
  color: #8ad6ff;
  background: rgba(37, 126, 255, .12);
}

.ai-compare-aimlake li strong { color: #f0f7ff; }
.ai-compare-aimlake li span { color: #a5b8ce; }

.ai-compare-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(121, 178, 255, .7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(70, 140, 255, .45), transparent 42%),
    linear-gradient(155deg, #0a1a36, #13264a 55%, #1a1638);
  box-shadow: 0 0 35px rgba(52, 113, 255, .4), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}

.ai-compare-core::before,
.ai-compare-core::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 180px;
  transform: translateX(-50%);
  background: linear-gradient(transparent, rgba(120, 165, 255, .5));
}

.ai-compare-core::before { bottom: 100%; }
.ai-compare-core::after { top: 100%; transform: translateX(-50%) rotate(180deg); }

.ai-compare-core img {
  position: relative;
  z-index: 1;
  width: 68px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(70, 160, 255, .35));
}

.ai-native-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid rgba(92, 155, 234, .2);
  border-radius: 12px;
  background: rgba(13, 28, 49, .66);
  color: #a7b6ca;
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}

.ai-native-footer strong { color: #77c9ff; }

/* Independent industry evidence for forward-deployed and embedded AI engineering. */
.ai-authority-section {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(115, 140, 174, .24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 23, 37, .96), rgba(7, 13, 22, .98));
}

.ai-authority-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  margin-bottom: 28px;
}

.ai-authority-head h2 {
  max-width: 720px;
  margin: 7px 0 0;
  color: #f5f8fd;
  font-size: clamp(1.9rem, 4.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.052em;
}

.ai-authority-head > p {
  margin: 0;
  color: #9caabd;
  font-size: .88rem;
  line-height: 1.75;
}

.ai-authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(120, 145, 178, .2);
  border-left: 1px solid rgba(120, 145, 178, .2);
}

.ai-authority-grid article {
  min-height: 280px;
  padding: clamp(22px, 3.5vw, 34px);
  border-right: 1px solid rgba(120, 145, 178, .2);
  border-bottom: 1px solid rgba(120, 145, 178, .2);
  background: rgba(255,255,255,.015);
  transition: background 180ms ease, border-color 180ms ease;
}

.ai-authority-grid article:hover {
  background: rgba(37, 103, 201, .07);
}

.ai-company-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid rgba(104, 168, 255, .32);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(45, 126, 245, .16), rgba(87, 55, 202, .12));
  color: #dbeaff;
  font-size: 1rem;
  font-weight: 900;
}

.ai-company-type {
  margin: 0 0 8px;
  color: #69bfff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ai-authority-grid h3 {
  margin: 0 0 10px;
  color: #f1f6fd;
  font-size: 1.35rem;
}

.ai-authority-grid article > p:not(.ai-company-type) {
  margin: 0 0 20px;
  color: #93a1b5;
  font-size: .8rem;
  line-height: 1.72;
}

.ai-authority-grid a {
  display: inline-flex;
  margin-top: auto;
  color: #b8d9ff;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}

.ai-authority-grid a:hover { color: #fff; }

.ai-authority-disclaimer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(64, 139, 241, .24);
  border-radius: 14px;
  background: rgba(19, 44, 78, .34);
}

.ai-authority-disclaimer strong {
  color: #dcecff;
  font-size: .76rem;
}

.ai-authority-disclaimer p {
  margin: 0;
  color: #93a5bc;
  font-size: .74rem;
  line-height: 1.65;
}

/* Path chooser */
.app-path-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  scroll-margin-top: 110px;
}

.app-path-card {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid rgba(82, 139, 205, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(14, 32, 54, 0.95), rgba(8, 16, 28, 0.96));
  text-decoration: none;
  transition: border-color 200ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.app-path-card:hover {
  border-color: rgba(38, 146, 255, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.app-path-label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(38, 146, 255, 0.45);
  color: #6fc7ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-path-card strong {
  color: #f4f9ff;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.app-path-card > span:last-child {
  color: #a7b6cb;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Build types + packages */
.app-build-types {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 22px;
}

.app-build-types span {
  padding: 9px 14px;
  border: 1px solid rgba(82, 139, 205, 0.24);
  border-radius: 999px;
  color: #c9d7e8;
  background: rgba(12, 24, 39, 0.76);
  font-size: 0.82rem;
}

.build-packages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.build-packages-grid .plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.build-packages-grid .plan-card > ul {
  flex: 1;
}

.build-packages-grid .card-cta {
  margin-top: auto;
}

/* Manage overview */
.manage-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(82, 139, 205, 0.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 26, 44, 0.92), rgba(7, 14, 24, 0.92));
}

.manage-overview h3 {
  margin: 0 0 10px;
  color: #f4f9ff;
  font-size: 1.35rem;
}

.manage-overview-copy > p {
  margin: 0 0 16px;
  color: #aebbd0;
  line-height: 1.7;
}

.manage-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.manage-highlights li {
  color: #d7e5f7;
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}

.manage-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2692ff;
}

.manage-overview-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

/* Process + proof */
.dm-section {
  margin-top: 64px;
}

.app-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: app-step;
}

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

.app-process-grid article {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(82, 139, 205, 0.2);
  border-radius: 18px;
  background: rgba(10, 20, 34, 0.78);
  counter-increment: app-step;
}

.app-process-grid article::before {
  content: counter(app-step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: #2692ff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.app-process-grid h3 {
  margin: 0 0 8px;
  color: #eff7ff;
}

.app-process-grid p {
  margin: 0;
  color: #9eacc0;
  line-height: 1.6;
}

.app-process-grid a {
  color: #6fc7ff;
}

.app-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
}

.app-proof-strip article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(82, 139, 205, 0.22);
  border-radius: 18px;
  background: rgba(10, 19, 31, 0.76);
}

.app-proof-strip strong {
  color: #eef7ff;
}

.app-proof-strip span {
  color: #9eacc0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Shared leftovers used by AM page */
.app-proof-grid,
.app-card-grid,
.app-problem-grid,
.app-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.app-proof-card,
.app-problem-grid article,
.app-policy-grid article {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(82, 139, 205, 0.22);
  border-radius: 18px;
  background: rgba(10, 19, 31, 0.76);
}

.app-proof-card strong,
.app-policy-grid strong {
  color: #eef7ff;
}

.app-proof-card span,
.app-policy-grid span,
.app-problem-grid p {
  color: #9eacc0;
  font-size: 0.86rem;
  line-height: 1.6;
}

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

.app-split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 64px;
}

.app-split-section > div {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(82, 139, 205, 0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 26, 44, 0.92), rgba(7, 14, 24, 0.92));
}

.app-split-section h2,
.app-split-section h3,
.gta-card h2,
.app-final-cta h2 {
  margin: 6px 0 12px;
  color: #f4f9ff;
}

.app-split-section p,
.gta-card p,
.app-final-cta p {
  color: #aebbd0;
  line-height: 1.72;
}

.app-split-section .app-policy-grid {
  grid-template-columns: 1fr;
}

.request-definition {
  max-width: 940px;
  margin: 22px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(38, 146, 255, 0.4);
  border-radius: 18px;
  background: rgba(17, 49, 79, 0.46);
}

.request-definition strong {
  color: #f2f8ff;
}

.request-definition p {
  margin: 7px 0 0;
  color: #b7c5d8;
  line-height: 1.65;
}

.gta-card {
  margin-top: 64px;
  text-align: center;
}

.gta-card a {
  color: #6fc7ff;
}

.related-service-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-service-links a {
  padding: 12px 16px;
  border: 1px solid rgba(82, 139, 205, 0.3);
  border-radius: 12px;
  color: #dbe9f8;
  text-decoration: none;
  background: rgba(13, 28, 47, 0.8);
}

.related-service-links a:hover {
  border-color: #2692ff;
  color: #fff;
}

.dm-faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.dm-faq-list details {
  margin-bottom: 10px;
  border: 1px solid rgba(82, 139, 205, 0.2);
  border-radius: 14px;
  background: rgba(10, 20, 34, 0.76);
}

.dm-faq-list summary {
  padding: 17px 20px;
  color: #edf6ff;
  cursor: pointer;
  font-weight: 650;
}

.dm-faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  color: #aebbd0;
  line-height: 1.65;
}

.app-service-page > .app-policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
}

.app-final-cta {
  margin-top: 64px;
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
}

.application-management-page .app-service-hero {
  border-color: rgba(94, 116, 255, 0.32);
  text-align: center;
}

.application-management-page .app-service-hero .eyebrow,
.application-management-page .app-service-hero .dm-eyebrow {
  justify-content: center;
}

.application-management-page .app-service-hero .dm-hero-title,
.application-management-page .app-service-hero .dm-hero-p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.application-management-page .app-service-hero .app-hero-actions {
  justify-content: center;
}

@media (max-width: 960px) {
  .management-grid,
  .build-packages-grid,
  .app-path-chooser,
  .manage-overview,
  .app-proof-strip {
    grid-template-columns: 1fr;
  }

  .management-grid .plan-card {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .app-proof-grid,
  .app-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-process-grid,
  .app-process-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-overview-actions {
    justify-items: stretch;
  }

  .ai-native-compare {
    grid-template-columns: 1fr;
  }

  .ai-compare-core {
    margin: -8px auto;
    transform: rotate(90deg);
  }

  .ai-compare-core > * {
    transform: rotate(-90deg);
  }

  .ai-authority-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .build-card-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-hero-actions .card-cta,
  .app-text-link {
    text-align: center;
  }

  .app-development-page .service-name-pill {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  .app-proof-grid,
  .app-card-grid,
  .app-problem-grid,
  .app-split-section,
  .app-process-grid,
  .app-process-compact,
  .app-service-page > .app-policy-grid {
    grid-template-columns: 1fr;
  }

  .dm-section,
  .app-split-section,
  .gta-card,
  .app-proof-strip,
  .app-service-page > .app-policy-grid,
  .app-final-cta {
    margin-top: 44px;
  }

  .ai-native-section {
    margin-top: 30px;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .ai-native-footer {
    align-items: center;
    flex-direction: column;
  }

  .ai-authority-section {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .ai-authority-grid {
    grid-template-columns: 1fr;
  }

  .ai-authority-disclaimer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
