/* The public checkout page (/get/): the offer beside the live scan card, then what is inside,
   the outline, how access works, what you need and the questions. Built on the site tokens. */

.offer {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.offer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.offer__brand,
.offer__brand:hover {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 300;
  font-stretch: 125%;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}

.offer__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer__nav a {
  color: var(--text);
  text-decoration: none;
}

.offer__nav a:hover {
  color: var(--accent);
}

/* ---------- Hero: the offer beside the scan card ---------- */
.offer__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 80px);
}

.offer__hero > * {
  animation: rise 700ms var(--ease) both;
}

.offer__hero > :last-child {
  animation-delay: 120ms;
}

.offer__copy h1 {
  max-width: 14ch;
  font-size: clamp(38px, 2.2rem + 2.6vw, 66px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.offer__lead {
  max-width: 54ch;
  margin: 20px 0 10px;
  font-size: 18px;
}

.offer__disciplines {
  margin: 0 0 28px;
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.offer__viewport {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

/* ---------- Price card ---------- */
.price {
  max-width: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.price__was {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 13px;
}

.price__was s {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
}

.price__now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 2px;
  color: var(--ink);
}

.price__now strong {
  font-size: clamp(44px, 2.4rem + 1.6vw, 60px);
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: -0.01em;
  line-height: 1;
}

.price__now span {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.price__usd {
  margin: 0 0 18px;
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* The monthly button sits under the main one. */
.price .btn + .btn,
.offer__cta .btn + .btn {
  margin-top: 10px;
}

.price__note {
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- What is inside: a ruled strip of counts ---------- */
.offer__counts {
  overflow: hidden; /* hides the first row's and first column's rules, which sit at -1px */
  border-block: 1px solid var(--line);
}

.counts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: -1px 0 0 -1px;
  padding: 0;
  list-style: none;
}

.counts li {
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* The same thin amber numbers as the members' dashboard. */
.counts strong {
  color: var(--accent);
  font-size: 40px;
  font-weight: 300;
  font-stretch: 115%;
  line-height: 1;
}

.counts span {
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
/* The expandable rows reuse the site's details style (components.css), amber chevron included. */
.offer__section {
  padding-top: clamp(56px, 8vw, 104px);
}

.offer__section h2 {
  max-width: 22ch;
  font-size: clamp(28px, 1.4rem + 1.6vw, 42px);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.01em;
}

.outline__module summary:focus-visible,
.faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Outline ---------- */
.outline {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

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

.outline__module summary {
  display: grid;
  grid-template-columns: 12px 36px minmax(0, 1fr) auto; /* chevron, number, title, count */
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
}

.outline__module summary::before {
  justify-self: center;
}

.outline__num {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.outline__title {
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  font-stretch: 105%;
  transition: color var(--dur) var(--ease);
}

.outline__module summary:hover .outline__title {
  color: var(--accent);
}

.outline__count {
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outline__lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 0;
  padding: 0 4px 22px 72px;
}

.outline__lessons li::marker {
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 12px;
}

/* ---------- How access works ---------- */
.howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.howto li {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}

/* A dashed survey line joins each step to the next. */
.howto li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 31px;
  right: -19px;
  width: 20px;
  border-top: 1px dashed var(--accent-line);
}

.howto__n {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.howto strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.howto p {
  margin: 6px 0 0;
  font-size: 15px;
}

/* ---------- What you need, and questions ---------- */
.offer__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px);
}

.needs {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.needs li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.needs .icon {
  flex: none;
  margin-top: 5px;
  color: var(--accent);
}

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

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

.faq__item summary {
  gap: 14px;
  padding: 16px 2px;
  font-size: 16px;
  font-weight: 500;
}

.faq__item p {
  margin: 0 0 18px;
  padding: 0 32px 0 21px; /* lines up with the question, past the chevron */
}

/* ---------- Closing call ---------- */
.offer__close {
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 6vw, 72px) 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 50% 0%, var(--accent-soft), transparent 70%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  text-align: center;
}

.offer__close h2 {
  font-size: clamp(32px, 1.6rem + 2vw, 52px);
  font-weight: 600;
  font-stretch: 108%;
}

.offer__close p {
  max-width: 46ch;
  margin: 14px auto 26px;
}

.offer__cta {
  max-width: 360px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.offer__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.offer__footer p {
  margin: 0;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .offer__hero,
  .howto,
  .offer__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer__viewport {
    justify-self: stretch;
    max-width: none;
  }

  .price {
    max-width: none;
  }

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

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

  .outline__lessons {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .offer {
    padding-inline: 16px;
  }

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

  .outline__module summary {
    grid-template-columns: 12px 28px minmax(0, 1fr);
    gap: 10px;
  }

  .outline__count {
    display: none;
  }

  .outline__lessons {
    padding-left: 52px;
  }

  .price {
    padding: 20px;
  }
}
