/* True Herald - advertorial page layer */

/* meta row, headline, dek */
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #5b606a;
}

.headline {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5625rem, 1.2rem + 1.4vw, 1.9375rem);
  line-height: 1.17;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.dek {
  margin: 0;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink-strong);
}

/* hero figure */
.hero {
  margin: 1.25rem 0 0;
}

.hero__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6e8ea;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}

@media (min-width: 480px) {
  .hero__media {
    aspect-ratio: 16 / 9;
  }
}

.badge-read {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 5px;
  background: rgba(24, 24, 24, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.badge-read svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.cap {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-style: italic;
  color: #5b606a;
}

.hero .cap {
  margin-bottom: 1.6rem;
}

/* section rhythm */
.sec {
  scroll-margin-top: 84px;
}

.sec--lead {
  margin-top: 0;
}

/* inline figures: loops and stills */
.fig {
  margin: 1.9rem 0 2.1rem;
}

.fig__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7e4df;
}

.fig__media video,
.fig__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig--port {
  max-width: 340px;
  margin-inline: auto;
}

.fig--port .fig__media {
  aspect-ratio: 4 / 5;
}

.fig--port video {
  object-position: 50% 88%;
}

.fig--still .fig__media {
  aspect-ratio: 3 / 2;
}

@media (min-width: 768px) {
  .fig--still .fig__media {
    aspect-ratio: 16 / 9;
  }
}

.fig--still img {
  object-position: 50% 40%;
}

/* CTA: inline text link */
.cta-line {
  margin: 1.4rem 0 0;
}

.prose .cta-line a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 700;
  line-height: 1.4;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.prose .cta-line a:hover {
  color: var(--navy);
  background: var(--tint);
}

/* CTA: button */
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  margin: 2rem 0 0.5rem;
}

.prose .btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.4rem;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--green-deep), 0 10px 20px rgba(31, 90, 29, 0.26);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.prose .btn:hover,
.btn:hover {
  background: var(--green-hi);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--green-deep), 0 14px 24px rgba(31, 90, 29, 0.3);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--green-deep), 0 4px 10px rgba(31, 90, 29, 0.25);
}

.btn__arrow {
  flex: none;
  width: 18px;
  height: 18px;
}

@media (min-width: 480px) {
  .prose .btn,
  .btn {
    width: auto;
    min-width: 340px;
    padding-inline: 2rem;
  }
}

/* check lists with green discs */
.checks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 2.4rem;
  line-height: 1.45;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--check);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 0.52rem;
  top: 0.27rem;
  width: 0.34rem;
  height: 0.68rem;
  border: solid #fff;
  border-width: 0 0.17rem 0.17rem 0;
  transform: rotate(45deg);
}

.checks strong {
  display: block;
}

/* small trust ticks under the closing button */
.ticks {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.22rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--green);
  border-width: 0 0.18rem 0.18rem 0;
  transform: rotate(45deg);
}

/* plain lists and steps */
.plain {
  margin: 0 0 1.3rem;
  padding-left: 1.3rem;
}

.plain li {
  margin-bottom: 0.75em;
  padding-left: 0.2rem;
}

.plain li::marker {
  color: var(--green);
}

.steps {
  margin: 1.1rem 0 1.4rem;
  padding-left: 1.45rem;
}

.steps li {
  margin-bottom: 0.85em;
  padding-left: 0.3rem;
}

.steps li::marker {
  font-weight: 700;
  color: var(--navy);
}

/* comparison table: stacked blocks on mobile, real table from 768px */
.cmp {
  margin: 1.6rem 0 2.2rem;
}

.cmp__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cmp__table caption {
  padding-bottom: 0.7rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.cmp__head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cmp__table tbody,
.cmp__table tr,
.cmp__table th,
.cmp__table td {
  display: block;
}

.cmp__table tr {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cmp__table tr:last-child {
  border-bottom: 1px solid var(--line);
}

.cmp__table th[scope="row"] {
  margin-bottom: 0.45rem;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}

.cmp__table td {
  padding: 0.25rem 0;
  color: #2d3138;
}

.cmp__table td::before {
  content: attr(data-label);
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b606a;
}

.cmp__table .cmp__pick {
  margin-inline: -10px;
  padding-inline: 10px;
  background: var(--tint);
  border-radius: 6px;
}

.pill {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .cmp__table {
    display: table;
    font-size: 0.875rem;
  }
  .cmp__head {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    white-space: normal;
  }
  .cmp__table thead {
    display: table-header-group;
  }
  .cmp__table tbody {
    display: table-row-group;
  }
  .cmp__table tr {
    display: table-row;
    padding: 0;
    border: 0;
  }
  .cmp__table th,
  .cmp__table td {
    display: table-cell;
    padding: 14px 12px;
    vertical-align: top;
    border-top: 1px solid var(--line);
  }
  .cmp__table thead th {
    padding-block: 10px;
    border-top: 2px solid var(--navy);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
  }
  .cmp__table th[scope="row"] {
    width: 24%;
    margin: 0;
    font-size: 0.9375rem;
  }
  .cmp__table td::before {
    content: none;
  }
  .cmp__table tr:last-child th,
  .cmp__table tr:last-child td {
    border-bottom: 1px solid var(--line);
  }
  .cmp__table .cmp__pick {
    margin-inline: 0;
    padding-inline: 0;
    background: none;
    border-radius: 0;
  }
  .cmp__table .cmp__pick > th,
  .cmp__table .cmp__pick > td {
    background: var(--tint);
  }
}

/* sticky table-of-contents rail (wide screens only) */
.rail {
  display: none;
}

@media (min-width: 1280px) {
  .rail {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 210px;
    margin-left: 22px;
  }
  .rail__box {
    position: sticky;
    top: 100px;
    padding: 18px 0 0;
  }
  .rail__title {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
  }
  .rail__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .rail__link {
    display: block;
    padding: 9px 0 9px 12px;
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #3a3f48;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  }
  .rail__link:hover {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.7);
  }
  .rail__link.is-active {
    border-left-color: var(--green);
    font-weight: 700;
    color: var(--green);
  }
}
