/* home.css - the advertorial (layout language: centred condensed headings, narrow column, grey option rows) */

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

[id] {
  scroll-margin-top: 24px;
}

/* reading progress */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 50;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding-top: clamp(30px, 5vw, 56px);
  padding-bottom: clamp(36px, 6vw, 64px);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font: 700 clamp(30px, 6.4vw, 54px)/1.12 var(--display);
  letter-spacing: 0.012em;
  text-wrap: balance;
}

.rule {
  display: block;
  width: 88px;
  height: 3px;
  margin: clamp(20px, 3vw, 32px) auto;
  background: var(--green-d);
}

.dek {
  max-width: 780px;
  margin: 0 auto;
  font: 400 clamp(21px, 3.6vw, 32px)/1.25 var(--display);
  color: #333;
  text-wrap: balance;
}

.meta {
  margin: 18px 0 24px;
  font: 400 14px/1.4 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fig.hero-fig {
  max-width: 700px;
  margin: 0 auto;
}

/* media */
.ratio {
  position: relative;
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: var(--r);
  background: #d9dad6;
}

.ratio video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r-wide {
  --ar: 1200 / 630;
}

.r-port {
  --ar: 4 / 5;
}

.pos-a video {
  object-position: 50% 24%;
}

.pos-b video {
  object-position: 50% 30%;
}

.fig {
  margin: clamp(28px, 4vw, 44px) 0;
}

.fig img {
  width: 100%;
  border-radius: var(--r);
  background: #d9dad6;
}

.fig figcaption {
  margin-top: 10px;
  font: italic 400 15px/1.45 var(--serif);
  color: var(--muted);
  text-align: left;
}

.hero-fig figcaption {
  text-align: center;
}

.fig--side {
  width: 100%;
  max-width: 320px;
  margin: 28px auto;
}

/* option rows (jump list) */
.jump {
  max-width: 700px;
  margin: 26px auto 0;
}

.jump-h {
  margin: 0 0 14px;
  font: 400 clamp(23px, 3.4vw, 30px)/1.2 var(--display);
  color: var(--ink);
}

.opts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--row);
  border-radius: var(--r);
  color: var(--ink);
  font: 400 clamp(19px, 2.7vw, 23px)/1.25 var(--display);
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s;
}

.opt:hover {
  background: #e3ebd9;
}

.opt-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: var(--r);
  color: transparent;
  transition: color 0.15s, border-color 0.15s;
}

.opt-box svg {
  width: 18px;
  height: 18px;
}

.opt:hover .opt-box {
  color: var(--green-d);
  border-color: var(--green-d);
}

/* ---------- article sections ---------- */
.intro {
  padding-top: 8px;
}

.sec {
  padding-block: clamp(44px, 7vw, 84px);
}

.sec--band {
  background: var(--band);
}

.col {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.col::after {
  content: "";
  display: table;
  clear: both;
}

.step {
  margin: 0 0 12px;
  text-align: center;
  font: 400 17px/1 var(--display);
  letter-spacing: 0.22em;
  color: var(--muted);
}

.sec h2 {
  margin: 0 0 clamp(24px, 3.4vw, 36px);
  text-align: center;
  font: 700 clamp(28px, 4.8vw, 42px)/1.12 var(--display);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose .lead {
  font-size: 1.12em;
  line-height: 1.65;
  color: #1c1c1c;
}

.prose strong {
  color: #1c1c1c;
}

/* tick list */
.ticks {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}

.ticks li {
  position: relative;
  margin-bottom: 0.9em;
  padding-left: 36px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 21px;
  height: 21px;
  border-radius: var(--r);
  background: var(--green-d);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.62em;
  width: 10px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* formats list */
.formats {
  display: flow-root;
  margin: 0 0 1.4em;
}

.formats div {
  padding: 14px 0 12px;
  border-top: 1px solid #cdd3c4;
}

.formats div:last-child {
  border-bottom: 1px solid #cdd3c4;
}

.formats dt {
  margin: 0 0 4px;
  font: 400 clamp(22px, 3vw, 26px)/1.2 var(--display);
  color: var(--green-d);
}

.formats dd {
  margin: 0;
  font-size: 0.94em;
  line-height: 1.6;
}

/* steps as option rows */
.steps {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 14px 16px;
  background: var(--row);
  border-radius: var(--r);
}

.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: var(--r);
  font: 700 19px/1 var(--display);
  color: var(--green-d);
}

.steps h3 {
  margin: 3px 0 6px;
  font: 400 clamp(21px, 3vw, 25px)/1.2 var(--display);
}

.steps p {
  margin: 0;
  font-size: 0.89em;
  line-height: 1.6;
}

/* pay ranges */
.rates {
  margin: 0 0 1.5em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rates div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--r);
}

.rates dt {
  font: 400 clamp(19px, 2.6vw, 22px)/1.2 var(--display);
  color: var(--muted);
}

.rates dd {
  margin: 0;
  font: 700 clamp(26px, 4vw, 34px)/1.1 var(--display);
  color: var(--green-d);
}

/* call to action */
.cta {
  margin: clamp(32px, 5vw, 52px) 0 0;
  text-align: center;
}

.cta-lead {
  margin: 0 auto 18px;
  max-width: 520px;
  font: 400 clamp(22px, 3.2vw, 28px)/1.25 var(--display);
  color: var(--ink);
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  min-height: 58px;
  padding: 14px 26px;
  background: var(--green-d);
  border-radius: var(--r);
  color: #fff;
  font: 400 clamp(21px, 3vw, 25px)/1.15 var(--display);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--green-dd);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(30, 60, 15, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-arrow {
  flex: none;
  transition: transform 0.15s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* FAQ / accordion */
.faq {
  margin: 0;
}

.faq details {
  border-bottom: 1px solid #c9cfc0;
}

.faq details:first-of-type {
  border-top: 2px solid var(--ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font: 700 clamp(20px, 2.8vw, 24px)/1.25 var(--display);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 3px solid var(--green-d);
  border-bottom: 3px solid var(--green-d);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--green-d);
}

.faq summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.faq .ans {
  padding: 0 0 22px;
}

.faq .ans p {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.65;
}

/* closing block */
.close {
  text-align: center;
}

.close .prose p {
  text-align: left;
}

.icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 6vw, 56px);
  margin: 30px 0 8px;
  padding: 0;
}

.icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  max-width: 150px;
  font: 400 clamp(16px, 2.4vw, 20px)/1.25 var(--display);
  color: var(--ink);
  text-align: center;
}

.icons svg {
  width: clamp(48px, 15vw, 72px);
  height: auto;
  color: var(--green-d);
}

/* ---------- wider screens ---------- */
@media (min-width: 480px) {
  .rates div {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
  }

  .opt {
    padding-inline: 18px;
  }
}

@media (min-width: 768px) {
  .steps li {
    gap: 20px;
    padding: 18px 20px;
  }

  .fig--side {
    float: right;
    width: 270px;
    max-width: none;
    margin: 6px 0 22px 32px;
  }

  .prose .lead {
    font-size: 1.1em;
  }
}

@media (min-width: 1024px) {
  .fig--side {
    width: 290px;
    margin-right: -150px;
  }
}
