.np3-cmp {
  --np3-bar-top: 63px;

  padding: 64px 0;
}

.np3-cmp__head {
  display: flex;
  gap: 130px;
  padding: 0 52px;
}

.np3-cmp__title {
  flex: none;
  font-size: 48px;
  font-style: italic;
  font-weight: 900;
  line-height: 52px;
  text-transform: uppercase;
  color: #000;
}

.np3-cmp__title .green {
  display: block;
  color: var(--np3-green-dark);
}

.np3-cmp__lead {
  flex: 1 1 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--np3-anthracite);
}

.np3-cmp__body {
  position: relative;
  margin-top: 64px;
}

.np3-cmp__tables {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── compare.table ── */
.np3-tblgroup {
  display: flex;
  flex-direction: column;
}

.np3-tbl {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 52px 40px;
  border-radius: 20px;
  background: #FFF;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
}

.np3-tbl__headline {
  font: inherit;
}

.np3-tbl__head {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: default;
}

.np3-tbl__icon {
  flex: none;
  display: block;
  width: 32px;
  height: 32px;
}

/* the section icons of the pricing tables, drawn black here */
.np3-tbl__icon img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0);
}

/* icon + title: the label column of the rows when the plan names share the row (first table) */
.np3-tbl__name {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 8px;
}

.np3-tbl--first .np3-tbl__name {
  min-width: 280px;
  max-width: 440px;
}

/* a word longer than the label column (narrow desktop, long languages) breaks instead of sticking out */
.np3-tbl__title {
  flex: 1 0 0;
  min-width: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: .5px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: #000;
}

.np3-tbl__plans {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  min-width: 520px;
}

.np3-tbl__plan {
  flex: 1 0 0;
  min-width: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 26px;
  letter-spacing: 1.04px;
  text-align: center;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
  color: var(--np3-anthracite);
}

.np3-tbl__chev {
  display: none;
  flex: none;
  width: 24px;
  height: 24px;
  color: #000;
  transition: transform .25s ease-in-out;
}

.np3-tbl__chev svg {
  display: block;
  width: 100%;
  height: 100%;
}

.np3-tbl__chev .np3-d,
.np3-tbl__chev .np3-m { display: block; width: 100%; height: 100%; }
.np3-tbl__chev .np3-m { display: none; }

.np3-tbl__rows {
  display: flex;
  flex-direction: column;
}

/* ── compare.row ── */
.np3row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 0;
}

.np3row:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--np3-green-dark);
}

.np3row__label {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  max-width: 440px;
  padding: 15px 12px 15px 20px;
}

.np3row__title {
  flex: 1 0 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  overflow-wrap: break-word;
  color: var(--np3-ash);
}

.np3row__info {
  position: relative;
  flex: none;
  display: block;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #888;
  cursor: pointer;
}

.np3row__info svg {
  display: block;
  width: 100%;
  height: 100%;
}

.np3row__info:focus-visible {
  outline: 2px solid var(--np3-green);
  outline-offset: 2px;
  border-radius: 50%;
}

.np3row__desc {
  display: none;
}

.np3row__values {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  min-width: 520px;
}

.np3row__cell {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.np3row__icon {
  display: block;
  width: 32px;
  height: 32px;
}

/* a word or an amount (non-breaking spaces) longer than a narrow column breaks inside it instead of sticking out */
.np3row__value {
  max-width: 100%;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
  color: var(--np3-anthracite);
}

.np3row__value b { font-weight: 700; }

.np3row__value--green {
  font-weight: 700;
  color: var(--np3-green-dark);
}

.np3row__note {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--np3-rich-beige);
}

/* ── compare.premium: under the travel table, 24px behind it ── */
.np3-prem {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: -24px;
  padding: 70px 40px 40px;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  background: #000 url('../imgs/premium.webp?v=20261028') 0 188.6% / 100% 113.75% no-repeat;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
}

.np3-prem__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 9px;
  padding-left: 40px;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  line-height: 22px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #FFF;
}

.np3-prem__lead { color: var(--np3-green); }

/* plan.lockup: the bigger plan name keeps the 22px line */
.np3-prem__plan {
  margin: 0 .15em;
  font-size: 30.83px;
  line-height: 22px;
  letter-spacing: 1.5415px;
  color: var(--np3-green);
}

.np3-prem__rows {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-radius: 24px;
  background: linear-gradient(to top, var(--np3-anthracite), rgba(0, 0, 0, 0));
}

.np3-prem .np3row__title,
.np3-prem .np3row__value { color: #FFF; }

/* ── compare.folded-list: the closed sections; open, a folded section is a table like the others ── */
.np3-cmp__folded {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 52px 0;
}

.np3-tbl--fold:not(.is-open) {
  gap: 0;
  padding: 0;
  border-bottom: 2px solid var(--np3-beige);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.np3-tbl--fold .np3-tbl__head {
  gap: 16px;
  cursor: pointer;
}

.np3-tbl--fold:not(.is-open) .np3-tbl__head {
  padding: 20px 24px 20px 8px;
}

.np3-tbl--fold:not(.is-open) .np3-tbl__name { padding-left: 0; }

.np3-tbl--fold:not(.is-open) .np3-tbl__icon {
  width: 24px;
  height: 24px;
}

.np3-tbl--fold .np3-tbl__chev { display: block; }

.np3-tbl--fold.is-open {
  margin: 0 -52px;
}

.np3-tbl--fold.is-open .np3-tbl__chev { transform: rotate(180deg); }

.np3-tbl--fold:not(.is-open) .np3-tbl__body { display: none; }

.np3-tbl__head:focus-visible {
  outline: 2px solid var(--np3-green);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ── the pinned column header: the section the page is in + the plan names, under the menu ── */
.np3-bar {
  position: sticky;
  top: var(--np3-bar-top);
  z-index: 5;
  height: 0;
  transition: top .3s ease-in-out;
}

.np3-bar__inner {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 52px;
  border-radius: 0 0 20px 20px;
  background: #FFF;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease-in-out, transform .2s ease-in-out, visibility 0s linear .2s;
}

.np3-bar.is-stuck .np3-bar__inner {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

.np3-bar__sec {
  position: relative;
  display: grid;
  flex: 1 0 0;
  min-width: 280px;
  max-width: 440px;
  padding-left: 8px;
}

.np3-bar__item {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  opacity: 0;
  transition: opacity .2s ease-in-out;
}

.np3-bar__item.is-current { opacity: 1; }

.np3-bar__title {
  overflow: hidden;
  font-size: 22px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
}

/* a closed section on the bar: its title (and chevron) opens it */
.np3-bar__chev {
  display: none;
  flex: none;
  width: 24px;
  height: 24px;
  color: #000;
}

.np3-bar__chev svg {
  display: block;
  width: 100%;
  height: 100%;
}

.np3-bar.is-sec-folded .np3-bar__chev { display: block; }
.np3-bar.is-sec-folded .np3-bar__sec  { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .np3-bar.is-sec-folded .np3-bar__sec:hover .np3-bar__title { color: var(--np3-green-dark); }
}

/* a title too long for the label column: two 16px lines in the same 32px */
.np3-bar__title.is-fit {
  display: -webkit-box;
  font-size: 16px;
  line-height: 16px;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.np3-mhead {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .np3-tbl--fold:not(.is-open) .np3-tbl__head:hover .np3-tbl__title { color: var(--np3-green-dark); }
}

/* (i) bubble on desktop (one element on <body>) */
.np3tip {
  position: fixed;
  z-index: 1000;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--np3-anthracite, #222);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #FFF;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease-in-out, visibility 0s linear .15s;
}

.np3tip.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .15s ease-in-out;
}

.np3tip__title {
  display: block;
  margin-bottom: 2px;
  font-weight: 800;
}

.np3tip::after {
  content: '';
  position: absolute;
  left: calc(var(--np3tip-x, 24px) - 6px);
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
}

.np3tip--above::after { bottom: -5px; }
.np3tip--below::after { top: -5px; }

@supports not (text-box: trim-both cap alphabetic) {
  .np3-tbl__plan { margin: -3.91px 0 -4.76px; }
}

/* the title and the lead stack under 1280px */
@media (max-width: 1279px) {
  .np3-cmp__head {
    flex-direction: column;
    gap: 16px;
  }

  .np3-cmp__lead {
    flex: none;
    width: 605px;
    max-width: 100%;
  }
}

/* ── mobile ── */
@media (max-width: 999px) {
  .np3-cmp {
    --np3-bar-top: 50px;

    padding: 64px 0 48px;
  }

  .np3-cmp__head {
    gap: 10px;
    padding: 0 16px;
  }

  .np3-cmp__title {
    max-width: 286px;
    font-size: 24px;
    line-height: 24px;
  }

  .np3-cmp__lead {
    width: auto;
    font-size: 16px;
    line-height: 24px;
    color: #000;
  }

  .np3-bar { display: none; }

  /* m.plans.header: sticks under the menu (or the top of the screen while the menu is hidden) */
  .np3-mhead {
    position: sticky;
    top: var(--np3-bar-top);
    z-index: 5;
    display: block;
    margin-top: 23px;
    padding: 10px 16px 14px;
    background: var(--np3-page);
    transition: top .3s ease-in-out;
  }

  .np3-mhead__row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0 8px;
    border-bottom: 1px solid #000;
  }

  .np3-mhead__plan {
    flex: 1 0 0;
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 900;
    line-height: 15px;
    text-align: center;
    white-space: nowrap;
    color: #000;
  }

  .np3-cmp__body {
    margin-top: 0;
  }

  .np3-cmp__tables {
    gap: 32px;
  }

  /* m.compare.table: the title row + the white card */
  .np3-tbl,
  .np3-tbl--fold:not(.is-open) {
    gap: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .np3-tbl__head,
  .np3-tbl--fold .np3-tbl__head,
  .np3-tbl--fold:not(.is-open) .np3-tbl__head {
    position: relative;
    justify-content: space-between;
    gap: 8px;
    padding: 19px 9px;
    cursor: pointer;
  }

  .np3-tbl__head .np3-tbl__icon,
  .np3-tbl__plans { display: none; }

  .np3-tbl__name,
  .np3-tbl--first .np3-tbl__name {
    min-width: 0;
    max-width: none;
    padding-left: 0;
  }

  .np3-tbl__title {
    font-size: 16px;
    font-weight: 900;
    line-height: 20px;
    letter-spacing: .5px;
  }

  .np3-tbl__chev {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--np3-anthracite);
  }

  .np3-tbl__chev .np3-d { display: none; }
  .np3-tbl__chev .np3-m { display: block; }

  .np3-tbl__body {
    padding: 21px 16px 18px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
  }

  .np3-tbl:not(.is-open) .np3-tbl__body,
  .np3-tblgroup:has(> .np3-tbl:not(.is-open)) > .np3-prem { display: none; }

  .np3-tbl__rows {
    gap: 28px;
  }

  /* m.compare.row */
  .np3row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
  }

  .np3row:not(:last-child)::after { display: none; }

  .np3row__label {
    max-width: none;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
  }

  .np3row__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;
    color: #000;
  }

  .np3row__info {
    order: 1;
    margin-top: 1px;
  }

  .np3row.is-info .np3row__desc {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--np3-rich-beige);
  }

  .np3row__desc strong { font-weight: 700; }

  .np3row__values {
    min-width: 0;
    align-items: stretch;
  }

  .np3row__cell {
    padding: 17.5px 4px;
  }

  .np3row__cell + .np3row__cell::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: -.5px;
    width: 1px;
    background: var(--np3-green-dark);
  }

  .np3row__value,
  .np3row__note {
    font-size: 14px;
  }

  /* m.compare.premium */
  .np3-prem {
    gap: 24px;
    margin: -24px 8px 0;
    padding: 48px 16px 18px;
    border-radius: 12px;
    background: #222 url('../imgs/premium-mobile.webp?v=20261028') 50% 0 / 1008px 620px no-repeat;
    box-shadow: none;
  }

  .np3-prem__head {
    flex-direction: column;
    gap: 8px;
    padding: 0;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    text-align: center;
  }

  .np3-prem__lead {
    font-size: 24px;
    line-height: 24px;
    color: #FFF;
  }

  .np3-prem__plan {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
  }

  .np3-prem__rows {
    gap: 28px;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .np3-prem .np3row__cell + .np3row__cell::before { background: var(--np3-ash); }

  .np3-prem .np3row.is-info .np3row__desc { color: var(--np3-beige); }

  /* m.compare.folded-list */
  .np3-cmp__folded {
    gap: 0;
    margin-top: 32px;
    padding: 0;
  }

  .np3-tbl--fold:not(.is-open) .np3-tbl__head {
    padding-bottom: 37px;
  }

  .np3-tbl--fold:not(.is-open) .np3-tbl__head::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 9px;
    left: 8px;
    height: 1px;
    background: var(--np3-beige);
  }

  .np3-tbl--fold.is-open {
    margin: 0;
  }
}
