@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/**
 * @file
 * AEM to Drupal migration LP (slug: aem-drupal-migration).
 *
 * Breakpoints: ~767px mobile / 768-1023px tablet / 1024px~ desktop.
 * The form block is rendered outside the node article (region globaltab),
 * so the form styles near the end of this file are not scoped.
 */

:root {
  --am-navy: #0a1f44;
  --am-blue: #0678be;
  --am-blue-fill: #05629f;
  --am-blue-dark: #044e80;
  --am-blue-light: #8fc8f0;
  --am-tint: #dcebf7;
  --am-tint-soft: #f7fafd;
  --am-red: #eb1000;
  --am-red-text: #b80f0a;
  --am-red-tint: #fdeeec;
  --am-red-on-navy: #ff6b5e;
  --am-text: #1a1a1a;
  --am-mute: #5b6475;
  --am-line: #d9e1ea;
  --am-en: "Inter", "Noto Sans JP", sans-serif;
  --am-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --am-max: 1120px;
  --am-gutter: 32px;
}

/* ---------- base ---------- */
.lp-page--aem-drupal-migration *,
.lp-page--aem-drupal-migration *::before,
.lp-page--aem-drupal-migration *::after {
  box-sizing: border-box;
}

.lp-page--aem-drupal-migration {
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: var(--am-text);
  font-family: var(--am-jp);
  line-height: 1.8;
  scroll-behavior: smooth;
}

.lp-page--aem-drupal-migration img {
  max-width: 100%;
  height: auto;
}

:where(.lp-page--aem-drupal-migration) :where(h1, h2, h3, p, ol, dl, dd) {
  margin: 0;
  padding: 0;
}

.lp-page--aem-drupal-migration a {
  color: var(--am-blue);
}

.lp-page--aem-drupal-migration table {
  border-collapse: collapse;
}

.lp-page--aem-drupal-migration th,
.lp-page--aem-drupal-migration td {
  text-align: left;
  vertical-align: top;
}

.am-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.am-container {
  position: relative;
  max-width: var(--am-max);
  margin: 0 auto;
  padding: 0 var(--am-gutter);
}

.am-container--narrow {
  max-width: 800px;
}

.am-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.am-section--white {
  background: #fff;
}

.am-section--tint {
  background: var(--am-tint);
}

/* ---------- reveal on scroll (enabled by JS) ---------- */
.has-reveal .am-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

.has-reveal .am-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- shared parts ---------- */
.am-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--am-blue);
  font: 600 13px var(--am-en);
  letter-spacing: .08em;
}

.am-label--deep {
  color: var(--am-blue-fill);
}

.am-label--red {
  color: var(--am-red-text);
}

.am-label--light {
  color: var(--am-blue-light);
}

.am-label__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentcolor;
}

.am-label__line {
  width: 48px;
  height: 1px;
  background: currentcolor;
}

.am-heading {
  margin-bottom: 56px;
}

.am-heading--wide {
  margin-bottom: 48px;
}

.am-heading__title {
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
}

.am-heading__title--spaced {
  margin-bottom: 56px;
}

.am-heading__title--spaced-md {
  margin-bottom: 48px;
}

.am-heading__title--spaced-sm {
  margin-bottom: 40px;
}

.am-heading__title--tight {
  margin-bottom: 20px;
}

.am-heading__lead {
  color: var(--am-mute);
  font-size: 15px;
  line-height: 1.8;
}

.am-heading__lead--lg {
  font-size: 16px;
}

.am-heading__text {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.am-heading__text:last-child {
  margin-bottom: 0;
}

.am-em {
  color: var(--am-blue);
}

.am-ghost {
  position: absolute;
  bottom: -30px;
  color: var(--am-tint);
  font: 800 200px/1 var(--am-en);
  letter-spacing: -.04em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* Kept inside the section padding so it is neither cut off nor over cards. */
.am-ghost--left {
  bottom: 0;
  left: 32px;
  font-size: 96px;
}

.am-ghost--right {
  right: 32px;
  top: 40px;
  bottom: auto;
}

.am-ghost--white {
  color: #fff;
  opacity: .7;
}

.am-grid {
  display: grid;
  gap: 24px;
}

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

.am-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.am-grid--tight {
  gap: 16px;
}

.am-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.am-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.am-tag--red {
  background: var(--am-red-text);
  color: #fff;
}

.am-tag--blue {
  background: var(--am-tint);
  color: var(--am-blue-fill);
  font-weight: 600;
}

.am-tags--sm .am-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.am-tag--tint {
  background: var(--am-tint);
  color: var(--am-blue-fill);
}

/* ---------- buttons ---------- */
.lp-page--aem-drupal-migration .am-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}

.lp-page--aem-drupal-migration .am-btn:hover {
  transform: translateY(-1px);
}

.lp-page--aem-drupal-migration .am-btn--primary {
  background: var(--am-blue);
  box-shadow: 0 8px 24px rgba(6, 120, 190, .45);
  color: #fff;
}

.lp-page--aem-drupal-migration .am-btn--primary:hover {
  background: var(--am-blue-fill);
  color: #fff;
}

.lp-page--aem-drupal-migration .am-btn--outline {
  border: 1.5px solid #fff;
  color: #fff;
}

.lp-page--aem-drupal-migration .am-btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.lp-page--aem-drupal-migration .am-btn--white {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  color: var(--am-blue);
}

.lp-page--aem-drupal-migration .am-btn--white:hover {
  background: var(--am-tint);
  color: var(--am-blue);
}

.lp-page--aem-drupal-migration .am-btn--small {
  min-height: 0;
  padding: 10px 20px;
  gap: 8px;
  background: var(--am-blue-fill);
  color: #fff;
  font-size: 14px;
}

.lp-page--aem-drupal-migration .am-btn--small:hover {
  background: var(--am-blue-dark);
  color: #fff;
}

.am-btn__arrow {
  font-family: var(--am-en);
}

/* ---------- header ---------- */
.am-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--am-line);
}

.am-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--am-max);
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--am-gutter);
}

.am-header__logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-page--aem-drupal-migration .am-header__logo {
  display: block;
  width: 120px;
  height: 36px;
  object-fit: contain;
}

.am-header__times {
  color: var(--am-mute);
  font: 600 16px var(--am-en);
}

.am-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.am-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lp-page--aem-drupal-migration .am-nav__link {
  color: var(--am-text);
  text-decoration: none;
  transition: color .15s ease;
}

.lp-page--aem-drupal-migration .am-nav__link:hover {
  color: var(--am-blue);
}

.am-nav__cta-short,
.am-nav__toggle {
  display: none;
}

.am-nav__toggle {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.am-nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--am-text);
  transition: transform .25s ease, opacity .25s ease;
}

.am-nav__toggle[aria-expanded="true"] .am-nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.am-nav__toggle[aria-expanded="true"] .am-nav__bar:nth-child(2) {
  opacity: 0;
}

.am-nav__toggle[aria-expanded="true"] .am-nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */
.am-hero {
  position: relative;
  min-height: 680px;
  padding-bottom: 96px;
  overflow: hidden;
  background: var(--am-navy);
  color: #fff;
}

.am-hero__deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.am-hero__rings {
  fill: none;
  stroke: rgba(255, 255, 255, .1);
}

.am-hero__dashed {
  fill: none;
  stroke: rgba(255, 255, 255, .2);
  stroke-dasharray: 2 8;
  transform-origin: 1060px 330px;
  animation: am-spin 90s linear infinite;
}

.am-hero__loop,
.am-hero__loop-head,
.am-hero__route,
.am-hero__route-line {
  fill: none;
}

.am-hero__loop {
  stroke: var(--am-red-on-navy);
  stroke-width: 6;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: am-draw 1.6s ease-out .3s forwards;
}

.am-hero__loop-head {
  stroke: var(--am-red-on-navy);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0;
  animation: am-fade-in .3s ease 1.8s forwards;
}

.am-hero__loop-text,
.am-hero__route-text {
  font: 700 12px var(--am-en);
  letter-spacing: 2px;
  opacity: 0;
}

.am-hero__loop-text {
  fill: var(--am-red-on-navy);
  animation: am-fade-in .6s ease .6s forwards;
}

.am-hero__route-text {
  fill: var(--am-blue-light);
  animation: am-fade-in .6s ease 3.2s forwards;
}

.am-hero__route {
  stroke: var(--am-blue);
  stroke-width: 34;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  opacity: .85;
  animation: am-draw 1.4s ease-in-out 1.9s forwards;
}

.am-hero__route-line {
  stroke: var(--am-blue-light);
  stroke-width: 6;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: am-draw 1.4s ease-in-out 2s forwards;
}

.am-hero__dot {
  fill: var(--am-blue-light);
  opacity: 0;
  animation: am-fade-in .4s ease 1.9s forwards;
}

/*
 * Anchored to the ring centre of .am-hero__deco (xMidYMid slice, centre at
 * x = 1060 of 1440), so the figure stays inside the hero at any width.
 */
.am-hero__person {
  position: absolute;
  top: calc(50% - 190px);
  right: calc(50% - 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 360px;
  height: 420px;
  opacity: 0;
  animation: am-fade-up 1s ease .6s forwards;
}

.lp-page--aem-drupal-migration .am-hero__person img {
  display: block;
  width: 360px;
  height: 420px;
  object-fit: contain;
}

.am-hero__container {
  padding-top: 96px;
}

.am-hero__text {
  max-width: 620px;
}

.am-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--am-blue-light);
  font: 600 13px var(--am-en);
  letter-spacing: .08em;
  opacity: 0;
  animation: am-fade-up .7s ease .1s forwards;
}

.am-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--am-blue-light);
}

.am-hero__eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--am-blue-light);
}

.am-hero__title {
  margin-bottom: 24px;
  font-size: 52px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  opacity: 0;
  animation: am-fade-up .8s ease .25s forwards;
}

.am-hero__title-em {
  border-bottom: 4px solid var(--am-red-on-navy);
  color: var(--am-red-on-navy);
}

.am-hero__lead {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.9;
  opacity: 0;
  animation: am-fade-up .8s ease .5s forwards;
}

.am-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: am-fade-up .8s ease .75s forwards;
}

.am-hero__note {
  margin-top: 20px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  opacity: 0;
  animation: am-fade-up .8s ease .95s forwards;
}

@media (min-width: 90rem) { /* 1440px */
  .am-hero__person {
    right: calc(26.4vw - 180px);
  }
}

@keyframes am-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes am-fade-in {
  to {
    opacity: 1;
  }
}

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

@keyframes am-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-hero *,
  .has-reveal .am-reveal {
    animation: none;
    transition: none;
  }

  .am-hero__person,
  .am-hero__eyebrow,
  .am-hero__title,
  .am-hero__lead,
  .am-hero__actions,
  .am-hero__note,
  .am-hero__loop-head,
  .am-hero__loop-text,
  .am-hero__route-text,
  .am-hero__dot {
    opacity: 1;
  }

  .am-hero__loop,
  .am-hero__route,
  .am-hero__route-line {
    stroke-dashoffset: 0;
  }
}

/* ---------- issues ---------- */
.am-issues {
  padding: 112px 0 96px;
}

.am-issue {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--am-line);
  border-top: 4px solid var(--am-red);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 31, 68, .08);
}

.am-issue__top {
  position: relative;
  padding: 20px 28px 0;
  background: var(--am-tint);
}

.am-issue__bignum {
  position: absolute;
  top: -10px;
  right: 14px;
  color: #fff;
  font: 800 88px/1 var(--am-en);
}

.am-issue__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.am-issue__icon {
  stroke: var(--am-blue-fill);
  stroke-width: 1.75;
}

.am-issue__icon .am-issue__icon-accent {
  stroke: var(--am-red);
}

.am-issue__num {
  color: var(--am-red-text);
  font: 700 13px var(--am-en);
  letter-spacing: .08em;
}

.lp-page--aem-drupal-migration .am-issue__img {
  position: relative;
  display: block;
  width: 100%;
  height: 170px;
  margin-top: 8px;
  object-fit: contain;
}

.am-issue__body {
  padding: 24px 28px 28px;
}

.am-issue__body .am-tags {
  margin-bottom: 14px;
}

.am-issue__title {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.am-issue__text {
  color: var(--am-mute);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- the real issue ---------- */
.am-axis {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 31, 68, .08);
}

.am-axis__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.am-axis__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--am-blue);
  color: #fff;
  font: 700 12px var(--am-en);
}

.am-axis__title {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.am-axis__icon {
  position: absolute;
  right: -30px;
  bottom: -34px;
  stroke: var(--am-blue);
  stroke-width: 1;
  opacity: .12;
  pointer-events: none;
}

.am-axis__text {
  position: relative;
  color: var(--am-mute);
  font-size: 14px;
  line-height: 1.7;
}

.am-down {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.am-down svg {
  stroke: var(--am-blue);
  stroke-width: 2;
}

.am-axis4 {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  background: var(--am-navy);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 31, 68, .25);
  color: #fff;
}

.am-axis4__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
}

.am-axis4__rings {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
}

.am-axis4__dashed {
  fill: none;
  stroke: rgba(143, 200, 240, .35);
  stroke-dasharray: 2 8;
}

.am-axis4__arc {
  fill: none;
  stroke: var(--am-blue);
  stroke-width: 22;
  opacity: .8;
}

.am-axis4__dot {
  fill: var(--am-blue-light);
}

.am-axis4__body {
  position: relative;
  max-width: 640px;
}

.am-axis4__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.am-axis4__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--am-blue-light);
  color: var(--am-navy);
  font: 700 12px var(--am-en);
}

.am-axis4__title {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
}

.am-axis4__text {
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- compare ---------- */
.am-compare {
  padding: 96px 0;
}

.am-table-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(10, 31, 68, .1);
}

.am-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
}

.lp-page--aem-drupal-migration .am-table__corner {
  width: 15%;
  padding: 16px;
  border-bottom: 2px solid var(--am-line);
  background: var(--am-tint-soft);
  color: var(--am-mute);
  font-size: 13px;
  font-weight: 600;
}

.lp-page--aem-drupal-migration .am-table__corner:last-child {
  width: 20%;
}

.lp-page--aem-drupal-migration .am-table__col {
  width: 21%;
  padding: 16px;
  color: #fff;
  font: 700 15px var(--am-en);
}

.lp-page--aem-drupal-migration .am-table__col--aem {
  background: var(--am-red-text);
}

.lp-page--aem-drupal-migration .am-table__col--sitecore {
  background: #4b5563;
}

.lp-page--aem-drupal-migration .am-table__col--drupal {
  width: 23%;
  background: var(--am-blue-fill);
}

.am-table__sub {
  display: block;
  margin-top: 2px;
  font: 500 11px var(--am-jp);
  opacity: .9;
}

.lp-page--aem-drupal-migration .am-table__row {
  padding: 18px 16px;
  border-bottom: 1px solid var(--am-line);
  background: var(--am-tint-soft);
  font-weight: 700;
}

.am-table__cell {
  position: relative;
  padding: 18px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--am-line);
}

.am-table__cell--aem {
  background: var(--am-red-tint);
}

.am-table__cell--drupal {
  background: var(--am-tint);
}

.am-table__cell--note {
  background: var(--am-tint-soft);
  color: var(--am-mute);
  font-size: 13px;
}

.am-table tbody tr:last-child > * {
  border-bottom: 0;
}

.am-mark {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  font: 700 80px/1 var(--am-en);
  opacity: .12;
  pointer-events: none;
  user-select: none;
}

.am-mark--neutral {
  color: var(--am-mute);
}

.am-mark--ok {
  color: var(--am-blue);
}

.am-compare__note {
  margin-top: 16px;
  color: var(--am-mute);
  font-size: 14px;
  line-height: 1.8;
}

.am-cost {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
  margin-top: 56px;
}

.am-cost__card {
  padding: 28px 32px;
  border: 1px solid var(--am-line);
  border-top: 4px solid var(--am-red);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 31, 68, .08);
}

.am-cost__card--drupal {
  border-color: var(--am-blue);
  box-shadow: 0 8px 24px rgba(6, 120, 190, .18);
}

.am-cost__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.am-cost__badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 4px;
  color: #fff;
  font: 700 13px var(--am-en);
  letter-spacing: .08em;
}

.am-cost__badge--aem {
  background: var(--am-red-text);
}

.am-cost__badge--drupal {
  background: var(--am-blue-fill);
}

.am-cost__caption {
  color: var(--am-mute);
  font-size: 12px;
}

.am-cost__license {
  padding: 16px 18px;
  border-left: 4px solid var(--am-red);
  border-radius: 0 4px 4px 0;
  background: var(--am-red-tint);
  color: var(--am-red-text);
  font-size: 15px;
  font-weight: 700;
}

.am-cost__license--none {
  border: 1px dashed var(--am-line);
  border-radius: 4px;
  background: none;
  color: var(--am-mute);
  font-weight: 400;
}

.am-cost__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  color: var(--am-mute);
  font-size: 12px;
  text-align: center;
}

.am-cost__items span {
  padding: 10px 4px;
  border: 1px solid var(--am-line);
  border-radius: 4px;
}

.am-cost__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-cost__arrow svg {
  stroke: var(--am-navy);
  stroke-width: 2.5;
}

.am-cost__bar {
  display: flex;
  align-items: stretch;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--am-blue-fill);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.am-cost__seg {
  padding: 10px 4px;
}

.am-cost__seg--dev {
  flex: 0 0 36%;
}

.am-cost__seg--run {
  flex: 1;
}

.am-cost__seg--host {
  flex: 0 0 22%;
}

.am-cost__seg--int {
  flex: 0 0 14%;
}

.am-cost__split {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  border-right: 1px dashed rgba(255, 255, 255, .6);
  border-left: 1px dashed rgba(255, 255, 255, .6);
  background: var(--am-blue);
  font: 600 10px var(--am-en);
  letter-spacing: -.1em;
}

.am-cost__lead {
  margin-top: 16px;
  color: var(--am-blue-fill);
  font-size: 15px;
  font-weight: 700;
}

.am-cost__note {
  margin-top: 12px;
  color: var(--am-mute);
  font-size: 12px;
}

/* ---------- mid CTA ---------- */
.am-midcta {
  position: relative;
  overflow: hidden;
  background: var(--am-blue);
  color: #fff;
}

.am-midcta__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .15) 1.5px, transparent 1.5px) 0 0 / 32px 32px;
}

.am-midcta__container {
  padding-top: 56px;
}

.am-midcta__title {
  margin-bottom: 24px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.am-midcta__sub {
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  font-weight: 400;
}

.am-midcta__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.am-midcta__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 56px;
}

.am-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.am-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 600;
}

.am-chip__tag {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--am-blue-fill);
  color: #fff;
  font: 700 11px var(--am-en);
  letter-spacing: .08em;
}

.am-midcta__img {
  display: flex;
  align-items: flex-end;
  width: 320px;
  height: 260px;
  margin-top: -60px;
}

.lp-page--aem-drupal-migration .am-midcta__img img {
  display: block;
  width: 320px;
  height: 260px;
  object-fit: contain;
}

/* ---------- solution ---------- */
.am-solution {
  padding: 112px 0 96px;
}

.am-solution__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.am-solution__text {
  color: var(--am-mute);
  font-size: 16px;
  line-height: 1.8;
}

.am-solution__note {
  margin-top: 16px;
  color: var(--am-mute);
  font-size: 13px;
}

.lp-page--aem-drupal-migration .am-solution__img img {
  display: block;
  width: 400px;
  height: 360px;
  object-fit: contain;
}

/* ---------- benefits ---------- */
.am-benefit-list {
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(10, 31, 68, .1);
}

.am-benefit {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-bottom: 1px solid var(--am-line);
}

.am-benefit--navy {
  border-bottom: 0;
  background: var(--am-navy);
  color: #fff;
}

.am-benefit__num {
  align-self: start;
  color: var(--am-blue);
  font: 800 56px/1 var(--am-en);
}

.am-benefit--navy .am-benefit__num {
  color: var(--am-blue-light);
}

.am-benefit__title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.am-benefit__text {
  color: var(--am-mute);
  font-size: 15px;
  line-height: 1.8;
}

.am-benefit--navy .am-benefit__text {
  color: rgba(255, 255, 255, .88);
}

.am-benefit__img {
  width: 240px;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--am-tint);
}

.am-benefit--navy .am-benefit__img {
  background: #fff;
}

.lp-page--aem-drupal-migration .am-benefit__img img {
  display: block;
  width: 240px;
  height: 180px;
  object-fit: contain;
}

/* ---------- honestly ---------- */
.am-honest__box {
  padding: 8px 0 8px 40px;
  border-left: 4px solid var(--am-red);
}

.am-honest__lead {
  margin-bottom: 32px;
  color: var(--am-mute);
  font-size: 16px;
  line-height: 1.8;
}

.am-honest__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.am-honest__list {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.am-honest__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 28px;
  border-radius: 12px;
  background: var(--am-red-tint);
}

.am-honest__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--am-red-text);
  color: #fff;
  font: 700 16px var(--am-en);
}

.am-honest__item p {
  padding-top: 8px;
  font-size: 16px;
  line-height: 1.8;
}

.am-honest__summary {
  color: var(--am-red-text);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
}

.am-honest__img {
  align-self: end;
  width: 300px;
  height: 360px;
}

.lp-page--aem-drupal-migration .am-honest__img img {
  display: block;
  width: 300px;
  height: 360px;
  object-fit: contain;
}

/* ---------- works ---------- */
.am-work {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 31, 68, .06);
}

.am-work__title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--am-line);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.am-work__list {
  margin: 0;
  display: grid;
  gap: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.am-work__list dd {
  margin: 0;
}

.am-work__list dt,
.am-work__period-label {
  margin-bottom: 4px;
  color: var(--am-blue);
  font: 600 11px var(--am-en);
  letter-spacing: .08em;
}

.am-work__period {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--am-line);
  font-size: 14px;
}

.am-work__period-label {
  margin-bottom: 0;
}

.am-work__period-value {
  font-weight: 700;
}

.am-works__note {
  margin-top: 32px;
  padding: 16px 24px;
  border-left: 3px solid var(--am-blue);
  border-radius: 0 8px 8px 0;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- why acret ---------- */
.am-reason {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 12px;
  color: #fff;
}

.am-reason--navy {
  background: var(--am-navy);
}

.am-reason--blue {
  background: var(--am-blue-fill);
}

.am-reason__icon {
  position: absolute;
  right: -50px;
  bottom: -60px;
  stroke: #fff;
  stroke-width: 1;
  opacity: .14;
  pointer-events: none;
}

.am-reason--navy .am-reason__icon {
  stroke: var(--am-blue-light);
}

.am-reason__inner {
  position: relative;
}

.am-reason__img {
  height: 180px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.lp-page--aem-drupal-migration .am-reason__img img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.am-reason__title {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.am-reason__text {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- flow ---------- */
.am-flow__list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
  list-style: none;
}

.am-step {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(10, 31, 68, .08);
}

.am-step__no {
  display: block;
  padding: 16px 24px;
  background: var(--am-blue-fill);
  color: #fff;
  font: 700 13px var(--am-en);
  letter-spacing: .1em;
}

.am-step__name {
  display: block;
  padding: 24px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.am-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-blue);
  font: 700 18px var(--am-en);
}

/* ---------- faq ---------- */
/* Lighter tint than the other tinted sections (the flow section is hidden). */
.am-section.am-faq {
  background: #eef5fb;
}

.am-faq__list {
  border-top: 1px solid var(--am-line);
}

.am-faq__item {
  border-bottom: 1px solid var(--am-line);
}

.am-faq__heading {
  font-size: 16px;
}

.lp-page--aem-drupal-migration .am-faq__q {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--am-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease;
}

.lp-page--aem-drupal-migration .am-faq__q:hover {
  color: var(--am-blue);
}

.am-faq__mark {
  color: var(--am-blue);
  font: 700 16px var(--am-en);
}

.am-faq__qtext {
  font-weight: 700;
}

.am-faq__chev {
  display: inline-block;
  color: var(--am-blue);
  font-size: 20px;
  line-height: 1;
  transition: transform .15s ease;
}

.am-faq__q[aria-expanded="true"] .am-faq__chev {
  transform: rotate(180deg);
}

.am-faq__a {
  padding: 0 36px 24px 52px;
  color: var(--am-mute);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- contact (intro) ---------- */
.am-contact {
  position: relative;
  padding: 96px 0 48px;
  overflow: hidden;
  background: var(--am-navy);
  color: #fff;
}

.am-contact .am-label {
  margin-bottom: 24px;
}

.am-contact__title {
  margin-bottom: 24px;
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
}

.am-contact__lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.8;
}

.am-contact__box {
  margin-bottom: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
}

.am-contact__box-label {
  margin-bottom: 10px;
  color: var(--am-blue-light);
  font: 600 12px var(--am-en);
  letter-spacing: .1em;
}

.am-contact__box-text {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- fixed CTA (mobile only) ---------- */
.am-fixedcta {
  display: none;
}

.lp-page--aem-drupal-migration .am-fixedcta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--am-blue-fill);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Webform block (rendered outside the article) ---------- */
.region-globaltab {
  background: var(--am-navy);
  font-family: var(--am-jp);
}

.region-globaltab .block-webform-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--am-gutter) 0;
}

.region-globaltab .webform-submission-form {
  position: relative;
  padding: 40px 40px 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  color: var(--am-text);
}

.region-globaltab .contact-form__title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
}

.region-globaltab .form-item {
  margin: 0 0 20px;
}

.region-globaltab .form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.region-globaltab .form-text,
.region-globaltab .form-email,
.region-globaltab .form-tel,
.region-globaltab .form-select,
.region-globaltab .form-textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--am-line);
  border-radius: 8px;
  background: #fff;
  color: var(--am-text);
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.region-globaltab .form-textarea {
  padding: 12px 14px;
  resize: vertical;
}

.region-globaltab .form-text:focus,
.region-globaltab .form-email:focus,
.region-globaltab .form-tel:focus,
.region-globaltab .form-select:focus,
.region-globaltab .form-textarea:focus {
  border-color: var(--am-blue);
  box-shadow: 0 0 0 3px rgba(6, 120, 190, .15);
}

/* Replace the classy theme's required-mark icon with a text label. */
.region-globaltab .form-required::after {
  display: inline;
  width: auto;
  height: auto;
  margin-left: 6px;
  background: none;
  color: var(--am-red-text);
  font-size: 12px;
  vertical-align: baseline;
  white-space: nowrap;
  content: "必須";
}

.region-globaltab .captcha {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.region-globaltab .captcha__title {
  display: none;
}

.region-globaltab .js-form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.region-globaltab .form-checkbox {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--am-blue);
}

.region-globaltab .js-form-type-checkbox label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

/* The visible text is the description (with link); keep the label for a11y. */
.region-globaltab .form-item-privacypolicy > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.region-globaltab .js-form-type-checkbox .description {
  color: var(--am-text);
  font-size: 14px;
}

.region-globaltab .js-form-type-checkbox .description p {
  margin: 0;
}

/* Reply-time note placed right above the submit button. */
.region-globaltab .contact-form__note {
  margin: 0;
  color: var(--am-mute);
  font-size: 13px;
}

.region-globaltab .form-actions {
  margin: 0 0 40px;
}

.region-globaltab .form-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--am-blue-fill);
  box-shadow: 0 8px 24px rgba(6, 120, 190, .35);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.region-globaltab .form-submit:hover {
  background: var(--am-blue-dark);
  transform: translateY(-1px);
}

/* Footer is merged into the webform "outro" so it is the last element. */
.region-globaltab .form-item-outro {
  margin-bottom: 0;
}

.contact-form__footer {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: var(--am-navy);
  color: rgba(255, 255, 255, .8);
}

.contact-form__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--am-max);
  margin: 0 auto;
  padding: 32px;
  font-size: 13px;
}

.contact-form__footer-link,
.contact-form__footer-link:hover {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-form__footer-link:hover {
  color: var(--am-blue-light);
}

/* ---------- tablet ---------- */
@media (max-width: 64rem) { /* 1024px */
  .am-ghost--right {
    font-size: 120px;
  }

  .am-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .am-hero__person {
    top: auto;
    right: 0;
    bottom: 40px;
    left: auto;
    width: 300px;
    height: 350px;
  }

  .lp-page--aem-drupal-migration .am-hero__person img {
    width: 300px;
    height: 350px;
  }

  .am-hero__text {
    max-width: 60%;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 47.9375rem) { /* 767px */
  .am-section,
  .am-issues,
  .am-compare,
  .am-solution {
    padding: 64px 0;
  }

  .am-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .am-ghost,
  .am-hero__person {
    display: none;
  }

  .am-grid--3,
  .am-grid--2,
  .am-midcta__grid,
  .am-solution__grid,
  .am-honest__grid,
  .am-flow__list {
    grid-template-columns: 1fr;
  }

  .am-grid--3 {
    gap: 16px;
  }

  .am-heading__title {
    font-size: 22px;
  }

  /* Header */
  .am-header__inner {
    height: 64px;
    padding: 0 16px;
  }

  .am-header__logos {
    gap: 6px;
  }

  .lp-page--aem-drupal-migration .am-header__logo {
    width: 84px;
    height: 28px;
  }

  .am-nav {
    gap: 4px;
  }

  .lp-page--aem-drupal-migration .am-btn--small {
    padding: 10px 12px;
    font-size: 13px;
  }

  .am-nav__cta-long {
    display: none;
  }

  .am-nav__cta-short,
  .am-nav__toggle {
    display: inline;
  }

  .am-nav__toggle {
    display: flex;
  }

  .am-nav__links {
    display: none;
  }

  .am-nav.is-open .am-nav__links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border-bottom: 1px solid var(--am-line);
    box-shadow: 0 8px 24px rgba(10, 31, 68, .1);
  }

  .am-nav.is-open .am-nav__link {
    display: block;
    padding: 14px 16px;
    border-top: 1px solid var(--am-line);
    font-size: 16px;
  }

  /* Hero */
  .am-hero {
    min-height: 0;
    padding-bottom: 64px;
  }

  .am-hero__container {
    padding-top: 64px;
  }

  .am-hero__deco {
    opacity: .5;
  }

  .am-hero__text {
    max-width: 100%;
  }

  .am-hero__title {
    font-size: 28px;
    line-height: 1.4;
  }

  .am-hero__title br {
    display: none;
  }

  /* Issues / real issue */
  .am-axis4 {
    padding: 32px 24px;
  }

  .am-axis4__title {
    font-size: 22px;
  }

  /* Compare table becomes per-axis cards */
  .am-table,
  .am-table tbody,
  .am-table tr,
  .am-table th,
  .am-table td {
    display: block;
  }

  .am-table thead {
    display: none;
  }

  .am-table-wrap {
    border: 0;
    box-shadow: none;
  }

  .am-table tbody tr {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--am-line);
    border-radius: 12px;
  }

  .lp-page--aem-drupal-migration .am-table__row {
    width: auto;
    padding: 16px;
  }

  .am-table__cell {
    width: auto;
    padding: 14px 16px;
  }

  .am-table tbody tr:last-child > * {
    border-bottom: 1px solid var(--am-line);
  }

  .am-table tbody td:last-child {
    border-bottom: 0;
  }

  .am-table__cell::before {
    display: block;
    margin-bottom: 4px;
    font: 700 11px var(--am-en);
    letter-spacing: .08em;
    content: attr(data-col);
  }

  .am-table__cell--aem::before {
    color: var(--am-red-text);
  }

  .am-table__cell[data-col="Sitecore"]::before {
    color: #4b5563;
  }

  .am-table__cell--drupal::before {
    color: var(--am-blue-fill);
  }

  .am-table__cell--note::before {
    color: var(--am-mute);
  }

  .am-mark {
    right: -8px;
    font-size: 48px;
  }

  .am-cost {
    grid-template-columns: 1fr;
  }

  .am-cost__arrow {
    height: 32px;
    transform: rotate(90deg);
  }

  /* Mid CTA */
  .am-midcta__img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    margin: 0 auto;
    justify-content: center;
  }

  .lp-page--aem-drupal-migration .am-midcta__img img {
    width: auto;
    height: 220px;
  }

  /* Solution / benefits / honest */
  .lp-page--aem-drupal-migration .am-solution__img img {
    width: 100%;
    height: 260px;
  }

  .am-benefit {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 20px;
  }

  .am-benefit__num {
    font-size: 40px;
  }

  .am-benefit__img,
  .lp-page--aem-drupal-migration .am-benefit__img img {
    width: 100%;
  }

  .am-honest__box {
    padding-left: 0;
    border-left: 0;
  }

  .am-honest__item {
    padding: 20px 16px;
  }

  .am-honest__grid {
    gap: 0;
  }

  .am-honest__list {
    margin-bottom: 24px;
  }

  .am-honest__img {
    justify-self: center;
    max-width: 100%;
    height: auto;
    margin-top: -24px;
  }

  .lp-page--aem-drupal-migration .am-honest__img img {
    width: auto;
    max-width: 100%;
    height: 280px;
  }

  /* Flow */
  .am-flow__arrow {
    height: 32px;
    transform: rotate(90deg);
  }

  /* FAQ */
  .am-faq__a {
    padding: 0 0 24px 52px;
  }

  /* Contact / form */
  .am-contact {
    padding: 64px 0 32px;
  }

  .am-contact__title {
    font-size: 26px;
  }

  .region-globaltab .block-webform-block {
    padding: 0 16px;
  }

  .region-globaltab .webform-submission-form {
    padding: 28px 20px 0;
  }

  .contact-form__footer-inner {
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
    text-align: center;
  }

  /* Fixed CTA bar: hidden while the form is on screen (is-hidden via JS) */
  .am-fixedcta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--am-line);
    background: rgba(255, 255, 255, .96);
  }

  .am-fixedcta.is-hidden {
    display: none;
  }
}
