/* Atlantic Image Defense - public service plans page aligned with subscription plans - v189 */
.aid-plan-section-top {
  background:
    linear-gradient(135deg, rgba(7, 18, 35, .82), rgba(5, 15, 31, .88)),
    url('/assets/img/plans/plan-abstract-backdrop.jpg') center/cover no-repeat;
}

.aid-subscription-plans {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0, rgba(24,254,245,.08), transparent 26%),
    linear-gradient(180deg, #0d1630 0%, #0a1327 100%);
}

.aid-plan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 34px;
  padding: 34px;
  border: 1px solid rgba(75, 222, 221, .18);
  border-radius: 12px;
  background: rgba(8, 18, 37, .88);
  box-shadow: 0 26px 60px rgba(4, 9, 20, .24);
}
.aid-plan-hero__eyebrow,
.aid-plan-registration-note__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(24,254,245,.24);
  border-radius: 0;
  background: rgba(24,254,245,.10);
  color: #67ece5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.aid-plan-hero h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}
.aid-plan-hero p {
  margin: 0;
  color: rgba(224,233,239,.78);
  font-size: 16px;
  line-height: 1.8;
}
.aid-plan-hero__notes {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.aid-plan-hero__notes li {
  position: relative;
  padding-left: 18px;
  color: rgba(232,239,243,.84);
  font-size: 14px;
  line-height: 1.6;
}
.aid-plan-hero__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: #25ece3;
}
.aid-plan-toggle {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: rgba(255,255,255,.035);
}
.aid-plan-toggle > span {
  margin-right: 6px;
  color: rgba(219,229,235,.88);
  font-size: 13px;
  font-weight: 700;
}
.aid-plan-toggle button {
  min-width: 118px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.aid-plan-toggle button.is-active {
  border-color: rgba(24,254,245,.28);
  background: linear-gradient(90deg, rgba(35,174,211,.22), rgba(56,235,226,.18));
  color: #7ef7f1;
}
.aid-plan-hero__visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.aid-plan-hero__image-wrap {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.aid-plan-hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,13,26,0) 0%, rgba(6,16,30,.42) 100%);
}
.aid-plan-hero__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.aid-plan-hero__caption {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(75,222,221,.14);
  border-radius: 0;
  background: rgba(13,24,47,.92);
  color: rgba(222,232,238,.84);
  font-size: 13px;
  line-height: 1.6;
}

.aid-plan-grid {
  row-gap: 24px;
}
.aid-plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(21,31,59,.94) 0%, rgba(13,23,44,.96) 100%);
  box-shadow: 0 22px 55px rgba(5,10,20,.18);
}
.aid-plan-card.is-featured {
  border-color: rgba(24,254,245,.24);
  box-shadow: 0 28px 60px rgba(6,14,28,.24);
}
.aid-plan-card__top {
  display: block;
}
.aid-plan-card__audience {
  display: block;
  margin-bottom: 6px;
  color: rgba(222,231,237,.62);
  font-size: 12px;
  line-height: 1.5;
}
.aid-plan-card h3 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}
.aid-plan-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.aid-plan-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.25;
}
.aid-plan-card__badge.is-recommended {
  background: rgba(255,209,92,.15);
  color: #ffd982;
  border: 1px solid rgba(255,209,92,.25);
}
.aid-plan-card__badge.is-trial {
  background: rgba(24,254,245,.12);
  color: #74ebe6;
  border: 1px solid rgba(24,254,245,.24);
}
.aid-plan-card__icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 22px 0 18px;
  border-radius: 0;
  background: rgba(24,254,245,.12);
  color: #1af6ec;
  font-size: 28px;
}
.aid-plan-card__price-wrap {
  display: grid;
  gap: 8px;
}
.aid-plan-card__price {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}
.aid-plan-card__billing-note {
  color: rgba(215,226,233,.62);
  font-size: 12px;
  line-height: 1.55;
}
.aid-plan-card__billing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.aid-plan-card__billing-options > div {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: rgba(255,255,255,.035);
}
.aid-plan-card__billing-options > div.is-active {
  border-color: rgba(24,254,245,.24);
  background: rgba(24,254,245,.08);
}
.aid-plan-card__billing-options small,
.aid-plan-card__billing-options strong {
  display: block;
}
.aid-plan-card__billing-options small {
  margin-bottom: 6px;
  color: rgba(220,231,236,.7);
  font-size: 12px;
}
.aid-plan-card__billing-options strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}
.aid-plan-card__description {
  margin: 18px 0 0;
  color: rgba(228,236,241,.84);
  font-size: 15px;
  line-height: 1.7;
}
.aid-plan-card__cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin: 22px 0;
}
.aid-plan-card__cap-grid div {
  padding: 15px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: rgba(255,255,255,.03);
}
.aid-plan-card__cap-grid span,
.aid-plan-card__cap-grid small { display: block; }
.aid-plan-card__cap-grid span {
  margin-bottom: 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.aid-plan-card__cap-grid small {
  color: rgba(220,229,235,.72);
  font-size: 12px;
  line-height: 1.45;
}
.aid-plan-card__details {
  padding: 16px 18px;
  border: 1px solid rgba(75,222,221,.14);
  border-radius: 0;
  background: rgba(8,18,36,.48);
}
.aid-plan-card__details > strong {
  display: block;
  margin-bottom: 10px;
  color: #70ece6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.aid-plan-card__details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.aid-plan-card__details li {
  position: relative;
  padding-left: 18px;
  color: rgba(230,238,243,.82);
  font-size: 14px;
  line-height: 1.62;
}
.aid-plan-card__details li + li { margin-top: 8px; }
.aid-plan-card__details li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #24ede3;
  font-weight: 800;
}
.aid-plan-card__activation {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: rgba(240,249,248,.05);
  color: rgba(228,237,241,.88);
  font-size: 13px;
  line-height: 1.62;
}
.aid-plan-card__actions {
  margin-top: auto;
  padding-top: 22px;
}
.aid-plan-card__actions .btn_one,
.aid-plan-registration-note__actions .btn_one,
.aid-plan-registration-note__actions .btn_two {
  width: 100%;
  border-radius: 0;
  text-align: center;
}

.aid-plan-comparison {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(10,25,49,.96), rgba(13,21,43,.96));
}
.aid-plan-comparison__header {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.aid-plan-comparison__header h3,
.aid-plan-registration-note__copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.14;
}
.aid-plan-comparison__header p,
.aid-plan-registration-note__copy p {
  margin: 0;
  color: rgba(225,234,239,.78);
  font-size: 15px;
  line-height: 1.74;
}
.aid-plan-comparison__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.aid-plan-comparison__grid article {
  padding: 18px;
  border: 1px solid rgba(75,222,221,.14);
  border-radius: 0;
  background: rgba(255,255,255,.03);
}
.aid-plan-comparison__grid span {
  display: block;
  margin-bottom: 10px;
  color: #72ece6;
  font-size: 13px;
  font-weight: 800;
}
.aid-plan-comparison__grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}
.aid-plan-comparison__grid p {
  margin: 0;
  color: rgba(225,233,238,.74);
  font-size: 14px;
  line-height: 1.65;
}

.aid-plan-registration-note {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(75,222,221,.14);
  border-radius: 0;
  background: rgba(8,18,37,.92);
}
.aid-plan-registration-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.aid-plan-registration-note__actions .btn_one,
.aid-plan-registration-note__actions .btn_two {
  width: auto;
  min-width: 180px;
}
.aid-plan-registration-note__visual {
  min-height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(7,16,30,.25), rgba(5,13,28,.56)),
    url('/assets/img/plans/plan-abstract-backdrop.jpg') center/cover no-repeat;
}

@media (max-width: 1199.98px) {
  .aid-plan-hero,
  .aid-plan-registration-note {
    grid-template-columns: 1fr;
  }
  .aid-plan-hero__image-wrap img { min-height: 280px; }
}

@media (max-width: 991.98px) {
  .aid-plan-comparison__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .aid-plan-hero,
  .aid-plan-comparison,
  .aid-plan-registration-note,
  .aid-plan-card {
    padding: 22px;
  }
  .aid-plan-card__top {
    flex-direction: column;
  }
  .aid-plan-card__badges {
    justify-content: flex-start;
  }
  .aid-plan-card__cap-grid,
  .aid-plan-card__billing-options {
    grid-template-columns: 1fr;
  }
  .aid-plan-hero__image-wrap img {
    min-height: 220px;
  }
  .aid-plan-registration-note__actions {
    flex-direction: column;
  }
  .aid-plan-registration-note__actions .btn_one,
  .aid-plan-registration-note__actions .btn_two {
    width: 100%;
    min-width: 0;
  }
}

/* v451.184 — robust billing control, caption containment and comparison alignment */
.aid-plan-hero__visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  min-height: 0;
}
.aid-plan-hero__image-wrap {
  min-height: 0;
  height: 100%;
}
.aid-plan-hero__caption {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  margin-bottom: 0;
}

.aid-plan-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: transparent;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.aid-plan-toggle a:hover,
.aid-plan-toggle a:focus-visible {
  border-color: rgba(24,254,245,.24);
  color: #7ef7f1 !important;
  outline: none;
}
.aid-plan-toggle a.is-active {
  border-color: rgba(24,254,245,.28);
  background: linear-gradient(90deg, rgba(35,174,211,.22), rgba(56,235,226,.18));
  color: #7ef7f1 !important;
}

@media (min-width: 992px) {
  .aid-plan-grid > [class*="col-"] {
    display: flex;
  }
  .aid-plan-card {
    width: 100%;
  }
  .aid-plan-card__top {
    display: block;
    min-height: 86px;
  }
  .aid-plan-card__audience {
    min-height: 38px;
    margin-bottom: 5px;
  }
  .aid-plan-card h3 {
    min-height: 38px;
  }
  .aid-plan-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    margin: 12px 0 16px;
  }
  .aid-plan-card__icon {
    flex: 0 0 62px;
    margin: 0;
  }
  .aid-plan-card__badges {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
  }
  .aid-plan-card__badge {
    padding: 7px 8px;
    font-size: 9.5px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .aid-plan-card__price-wrap {
    min-height: 132px;
    align-content: start;
  }
  .aid-plan-card__price {
    min-height: 80px;
    display: flex;
    align-items: flex-start;
  }
  .aid-plan-card__billing-note {
    min-height: 54px;
  }
  .aid-plan-card__billing-options {
    min-height: 100px;
    margin-top: 16px;
  }
  .aid-plan-card__description {
    min-height: 86px;
  }
  .aid-plan-card__cap-grid {
    min-height: 166px;
  }
  .aid-plan-card__details {
    min-height: 192px;
  }
  .aid-plan-card__activation {
    min-height: 82px;
    display: flex;
    align-items: center;
  }
  .aid-plan-card__actions {
    padding-top: 20px;
  }
}

@media (max-width: 991.98px) {
  .aid-plan-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
  }
  .aid-plan-card__icon { margin: 0; }
  .aid-plan-card__badges {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 575.98px) {
  .aid-plan-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .aid-plan-toggle > span {
    grid-column: 1 / -1;
    margin-right: 0;
  }
  .aid-plan-toggle a {
    width: 100%;
    min-width: 0;
  }
}

/* v451.185 — Starter comparison alignment refinement */
@media (min-width: 992px) {
  /* Starter uses a shorter price label (Free). Give its explanatory copy the
     same visual depth as the paid-plan notes and lower the comparison body
     slightly so homologous rows line up across all three cards. */
  .aid-plan-card[data-billing-model="free"] .aid-plan-card__billing-note {
    min-height: 72px;
  }
  .aid-plan-card[data-billing-model="free"] .aid-plan-card__billing-options {
    margin-top: 22px;
  }
}

/* v451.186 — Starter bottom-row alignment refinement */
@media (min-width: 992px) {
  /* Keep the CTA anchored at the same bottom position while moving the shorter
     Starter activation panel down to the same visual row as paid-plan panels. */
  .aid-plan-card[data-billing-model="free"] .aid-plan-card__activation {
    margin-top: auto;
  }
  .aid-plan-card[data-billing-model="free"] .aid-plan-card__actions {
    margin-top: 0;
    padding-top: 20px;
  }
}

/* v451.187 — multilingual row synchronization
   The three plan cards must remain directly comparable in EN/DE/ES/IT/FR.
   JS measures the tallest homologous row after the active locale renders and
   applies that height to all three cards. These rules restore a neutral flex
   baseline so Starter is not handled differently from paid plans. */
@media (min-width: 992px) {
  .aid-plan-card[data-billing-model="free"] .aid-plan-card__activation {
    margin-top: 18px;
  }
  .aid-plan-card[data-billing-model="free"] .aid-plan-card__actions {
    margin-top: auto;
    padding-top: 20px;
  }
}


/* v451.188 — move Recommended into the Professional title row so the trial
   badge can rise and align with the other plan cards, including DE/ES/IT/FR. */
.aid-plan-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.aid-plan-card__title-row h3 {
  flex: 1 1 auto;
  min-width: 0;
}
.aid-plan-card__badge--title {
  flex: 0 0 auto;
  margin-top: 4px;
  white-space: nowrap;
}
.aid-plan-card__meta {
  align-items: flex-start;
}
.aid-plan-card__badges {
  align-items: flex-start;
  align-content: flex-start;
}

@media (min-width: 992px) {
  .aid-plan-card__top {
    min-height: 88px;
  }
  .aid-plan-card__title-row {
    min-height: 43px;
  }
  .aid-plan-card__meta {
    min-height: 62px;
    margin: 14px 0 16px;
    align-items: flex-start;
  }
  .aid-plan-card__badges {
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  .aid-plan-card__title-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .aid-plan-card__title-row {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}


/* v451.189 — Recommended badge follows the Professional title. */
.aid-plan-card__title-row {
  justify-content: flex-start;
}
.aid-plan-card__title-row h3 {
  flex: 0 1 auto;
}
.aid-plan-card__badge--title {
  order: initial;
  margin-top: 5px;
}

@media (max-width: 575.98px) {
  .aid-plan-card__title-row {
    flex-direction: column;
  }
}
