/* Service and sub-service pages. */

@keyframes drift-a {
  0%,
  100% { transform: translate(-8%, -5%) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.28); }
}

@keyframes drift-b {
  0%,
  100% { transform: translate(8%, 10%) scale(1.12); }
  50% { transform: translate(-12%, -8%) scale(1); }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: clip; background: var(--paper); }
.hero__glow { position: absolute; inset: 0; overflow: clip; }

.hero__glow::before,
.hero__glow::after { content: ''; position: absolute; border-radius: 50%; }

.hero__glow::before {
  top: -18%;
  left: -8%;
  width: 66%;
  height: 80%;
  background: radial-gradient(circle, rgb(245 200 66 / 24%), rgb(245 200 66 / 0%) 65%);
  filter: blur(32px);
  animation: drift-a 22s ease-in-out infinite;
}

.hero__glow::after {
  right: -10%;
  bottom: -20%;
  width: 58%;
  height: 72%;
  background: radial-gradient(circle, rgb(80 140 240 / 30%), rgb(80 140 240 / 0%) 66%);
  filter: blur(36px);
  animation: drift-b 27s ease-in-out infinite;
}

.hero__rules {
  position: absolute;
  inset: 0 var(--gutter);
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgb(20 20 22 / 7%) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.hero__inner { position: relative; z-index: 2; padding: 72px var(--gutter) 64px; }
.hero__body { max-width: 1000px; }
.hero__lead { margin-bottom: 32px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-bottom: 38px; }
.hero__checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.5; color: var(--ink-3); }
.hero__checks strong { font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .hero__glow::before,
  .hero__glow::after { animation: none; }
}

/* ---------- problem layouts ---------- */

.compare { overflow: clip; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }

.compare__row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 26px 34px;
  border-bottom: 1px solid var(--line);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row--head { padding: 20px 34px; background: var(--night); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: rgb(240 238 232 / 62%); }
.compare__row--head > :first-child { color: var(--gold); }
.compare__label { font-weight: 600; font-size: 16px; }
.compare__was,
.compare__now { font-size: 14.5px; line-height: 1.6; color: var(--stone); }
.compare__now { color: var(--ink-2); }

.failures { overflow: clip; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }

.failures__row {
  display: grid;
  grid-template-columns: minmax(0, 60px) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
}
.failures__row:last-child { border-bottom: 0; }
.failures__num { font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -1px; color: #c9c4b6; }
.failures__label { margin-bottom: 8px; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #b8542f; }
.failures__label--fix { color: #1c5c38; }
.failures p { font-size: 15.5px; line-height: 1.6; color: var(--slate); }
.failures div:first-of-type p { color: var(--ink-2); }

.isnot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.isnot__col { padding: 34px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.isnot__title { margin-bottom: 18px; font-size: 12px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--amber); }
.isnot ul { display: flex; flex-direction: column; gap: 14px; }
.isnot li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.isnot__mark { flex: none; color: var(--blue); }
.isnot__mark--no { color: #b8542f; }

/* ---------- AI block ---------- */

.ai-block { position: relative; overflow: clip; background: var(--night); color: var(--night-ink); }
.ai-block__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }

.ai-block__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 520px at 15% 0%, rgb(76 134 240 / 20%), transparent 56%),
    linear-gradient(180deg, rgb(20 26 38 / 86%), rgb(20 26 38 / 94%));
}
.ai-block__inner { position: relative; z-index: 1; }
.ai-block .head-split { margin-bottom: 48px; }
.ai-block__features { margin-bottom: 24px; }

.ai-panel {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: clip;
  border: 1px solid var(--night-line);
  border-radius: 22px;
  background: rgb(30 38 54 / 88%);
  backdrop-filter: blur(8px);
}
.ai-panel__pitch { display: flex; flex-direction: column; align-items: flex-start; padding: 46px 44px; border-right: 1px solid var(--night-line); }
.ai-panel__pitch .card__kicker { margin-bottom: 20px; }
.ai-panel__title { margin-bottom: 16px; font-weight: 600; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.16; letter-spacing: -.9px; color: var(--white); }
.ai-panel__text { margin-bottom: 32px; font-size: 15.5px; line-height: 1.65; color: var(--night-muted); }
.ai-panel__pitch .btn { margin-top: auto; }
.ai-panel__list { padding: 46px 44px; background: rgb(26 33 48 / 72%); }
.ai-panel__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.ai-panel__list li:last-child { border-bottom: 0; }
.ai-panel__item { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.ai-panel__list p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--night-muted); }

/* ---------- process timeline ---------- */

.section--process { padding-bottom: 110px; }
.section--process .head-split { margin-bottom: 64px; }
.timeline { position: relative; padding-left: 96px; --progress: 0; }
.timeline__rail { position: absolute; top: 12px; bottom: 12px; left: 26px; width: 2px; border-radius: 999px; background: var(--line-2); }
.timeline__fill { width: 100%; height: calc(var(--progress) * 100%); border-radius: 999px; background: linear-gradient(var(--blue), var(--gold)); transition: height .35s linear; }
.timeline__steps { display: flex; flex-direction: column; gap: 8px; }
.timeline__step { position: relative; opacity: .22; filter: saturate(.2); transform: translateY(22px); transition: opacity .6s ease, transform .7s var(--ease), filter .6s ease; }
.timeline__step.is-reached { opacity: 1; filter: none; transform: none; }

.timeline__dot {
  position: absolute;
  top: 34px;
  left: -96px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--white);
  color: var(--stone-2);
  font-weight: 700;
  font-size: 15px;
  transform: scale(.86);
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .5s ease, transform .5s var(--ease);
}
.is-reached .timeline__dot { border-color: var(--ink); background: var(--ink); color: var(--white); box-shadow: 0 0 0 7px rgb(59 116 232 / 14%), 0 16px 30px -18px rgb(20 20 22 / 50%); transform: none; }
.timeline__row { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 48px; align-items: start; padding: 34px 0 38px; border-bottom: 1px solid rgb(20 20 22 / 12%); }
.timeline__when { margin-bottom: 10px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--stone-2); }
.timeline__title { margin-bottom: 16px; font-weight: 600; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.16; letter-spacing: -.8px; }
.timeline__body { margin-bottom: 22px; font-size: 16px; line-height: 1.68; color: var(--ink-2); text-wrap: pretty; }
.output-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid #e7e4dc; border-radius: 999px; background: var(--white); font-size: 13px; color: var(--ink-2); }
.output-pill span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber); }

@media (max-width: 1100px) {
  .ai-panel { grid-template-columns: minmax(0, 1fr); }
  .ai-panel__pitch { border-right: 0; border-bottom: 1px solid var(--night-line); }
}

@media (max-width: 720px) {
  .ai-panel__pitch,
  .ai-panel__list { padding: 30px 22px; }
  .ai-panel__pitch .btn { max-width: 100%; }
  .section--process { padding-bottom: var(--section-y); }
  .timeline__step:last-child .timeline__row { padding-bottom: 0; border-bottom: 0; }
  /* "Output" label above its text in a small rounded box, instead of two lines squeezed into a pill. */
  .output-pill { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 14px; border-radius: 12px; }
}

@media (max-width: 900px) {
  .compare__row,
  .failures__row,
  .timeline__row { grid-template-columns: 1fr; gap: 12px; }
  .compare__row--head { display: none; }
  .isnot { grid-template-columns: 1fr; }
  .timeline { padding-left: 64px; }
  .timeline__rail { left: 18px; }
  .timeline__dot { left: -64px; width: 40px; height: 40px; font-size: 13px; }
}
