/* Pricing: one split card. Left describes the plan, right is the checkout. */
.price-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1.5px solid var(--black);
  border-radius: var(--radius-lg);
}

.price-card__plan,
.price-card__pay {
  padding: var(--space-8);
}

/* The checkout sits in the middle of the dark panel, however tall the plan beside it is */
.price-card__pay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--black);
  color: var(--white);
}

.price-card__checkout {
  display: flex;
  flex-direction: column;
}

.price-card [hidden] {
  display: none;
}

.price-card__details,
.price-card__checkout {
  animation: plan-in 400ms var(--ease);
}

@keyframes plan-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

.price-card__name {
  margin-top: var(--space-6);
  font-size: var(--text-2xl);
}

.price-card__desc {
  max-width: 38ch;
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.price-card .ticks {
  margin-top: var(--space-5);
}

/* "$3 a month" large, with the monthly $5 struck through beside it */
.price-card__price {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.price-card__checkout > .price-card__price:first-child {
  margin-top: 0;
}

.price-card__price.is-changing {
  animation: plan-in 400ms var(--ease);
}

.price-card__amount {
  display: flex;
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}

.price-card__amount sup {
  margin-right: 0.04em;
  font-size: 0.38em;
  line-height: 1.4;
}

.price-card__per {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 2px;
  padding-bottom: 0.1em;
  color: var(--gray);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

.price-card__per s {
  text-decoration-thickness: 2px;
}

.price-card__note {
  margin-top: var(--space-5);
  color: var(--white);
  font-size: var(--text-lg);
}

/* Monthly | Yearly: one track, the chosen half white */
.billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--white-12);
  border-radius: var(--radius-pill);
}

.billing label {
  position: relative;
}

.billing input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.billing span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 46px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.billing label:hover span {
  background: var(--white-06);
}

.billing input:checked + span {
  background: var(--white);
  color: var(--black);
}

.billing input:focus-visible + span {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.billing em {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--white-12);
  color: var(--white);
  font-size: 11px;
  font-style: normal;
  font-weight: var(--weight-bold);
}

.billing input:checked + span em {
  background: var(--black);
  color: var(--white);
}

.price-card__cta {
  min-height: 60px;
  margin-top: var(--space-7);
}

.price-card__fineprint {
  margin-top: var(--space-5);
  color: var(--gray);
  font-size: var(--text-sm);
}

/* Questions */
.questions {
  max-width: 820px;
}

.questions__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--head-space);
  text-align: center;
}

.questions__head .section-title {
  max-width: none;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--black-06);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}

.faq {
  display: grid;
  gap: var(--space-3);
}

.faq details {
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--black-06);
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.faq details:hover {
  background: var(--black-12);
}

.faq details[open] {
  border-color: var(--black);
  background: var(--white);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 14px 14px 14px 18px;
  list-style: none;
  cursor: pointer;
}

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

.faq__number {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.faq details[open] .faq__number {
  background: var(--black-06);
}

.faq__question {
  flex: 1;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

/* Black "+" when closed; white "×" with an outline when open */
.faq__toggle {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: var(--black) url("../assets/icons/plus-white.svg") center / 18px no-repeat;
  transition: rotate var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.faq details[open] .faq__toggle {
  background: var(--white) url("../assets/icons/plus.svg") center / 18px no-repeat;
  rotate: 45deg;
}

.faq__answer {
  max-width: 60ch;
  padding: 0 var(--space-8) var(--space-5) calc(18px + 28px + var(--space-4));
  color: var(--text-muted);
}

/* Footer: a floating card, then the oversized wordmark fading into the page edge */
.site-footer {
  overflow: hidden;
  padding-top: calc(var(--section-space) * 0.5);
}

.footer-card {
  padding: var(--space-7) var(--space-7) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.footer-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-7);
}

.footer-card__about p {
  max-width: 36ch;
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-card__links {
  display: flex;
  gap: clamp(var(--space-6), 6vw, var(--space-9));
}

.footer-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.footer-card nav a {
  display: block;
  padding-block: 4px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.footer-card nav a:hover {
  color: var(--black);
}

.footer-card__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.footer-card__legal {
  display: flex;
  gap: var(--space-5);
}

.footer-card__legal a {
  text-underline-offset: 3px;
}

.footer-card__legal a:hover {
  color: var(--black);
}

/* Bottom fifth of the wordmark is cut off by the page edge.
   It's also a quiet question: hover or tap it and it says what the name means. */
.site-footer__mark {
  position: relative;
  display: block;
  width: 88%;
  margin: var(--space-7) auto -2.2%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: help;
}

.site-footer__wordmark {
  width: 100%;
  height: auto;
}

.site-footer__meaning {
  position: absolute;
  bottom: 100%;
  left: 50%;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-size: var(--text-sm);
  white-space: nowrap;
  opacity: 0;
  translate: -50% 8px;
  transition: opacity var(--duration) var(--ease), translate var(--duration) var(--ease);
  pointer-events: none;
}

.site-footer__mark:hover .site-footer__meaning,
.site-footer__mark:focus-visible .site-footer__meaning,
.site-footer__mark.is-open .site-footer__meaning {
  opacity: 1;
  translate: -50% -8px;
}

.site-footer__mark:focus-visible {
  outline-offset: 6px;
}

/* Responsive */
@media (max-width: 1080px) {
  .closer__inner {
    grid-template-columns: 1fr 360px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    padding-block: var(--space-3);
    font-size: var(--text-lg);
  }

  .site-header__menu {
    display: inline-grid;
  }

  .hero-stage__incoming .x-post {
    width: 250px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .step {
    padding-inline: var(--space-5);
  }

  .step__art {
    margin-block: var(--space-4) var(--space-5);
  }

  .demo__inner,
  .closer__inner,
  .price-card {
    grid-template-columns: 1fr;
  }

  .closer__inner {
    gap: var(--space-7);
  }

  .popup {
    max-width: 420px;
  }


  .footer-card {
    padding: var(--space-5);
  }

  .footer-card__links {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    height: 64px;
  }

  /* Caption sits under the photo so it never covers the person in the centre */
  .photo-banner {
    overflow: visible;
    border-radius: 0;
  }

  .photo-banner img {
    border-radius: var(--radius-lg);
  }

  .photo-banner figcaption {
    position: static;
    margin-top: var(--space-3);
    padding: 0;
    background: none;
    color: var(--text-muted);
  }

  .site-header__actions {
    gap: var(--space-3);
  }


  .hero {
    height: calc(100svh - 64px);
    min-height: 680px;
    padding-top: var(--space-5);
  }

  .hero__eyebrow {
    padding-inline: 12px;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }

  .hero__lede {
    font-size: var(--text-md);
  }

  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero-stage {
    width: 100%;
    min-height: 360px;
  }

  .hero-stage__incoming .x-post {
    width: 190px;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .hero-stage__incoming .x-post__avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .hero-stage__incoming .x-post__badge,
  .hero-stage__incoming .x-post__more {
    width: 14px;
    height: 14px;
  }

  .hero-stage__incoming .x-post__media {
    margin-top: 8px;
    border-radius: 12px;
  }

  .hero-stage__incoming .x-post__video::after {
    width: 32px;
    height: 32px;
    background-size: 13px;
  }

  .hero-stage__incoming .x-post__media--ad {
    padding: 10px;
  }

  .hero-stage__incoming .x-post__media--ad strong {
    font-size: 16px;
  }

  .hero-stage__incoming .x-post__media--ad span {
    font-size: 10px;
  }

  .hero-stage__incoming .x-post__actions {
    margin-top: 8px;
    font-size: 11px;
  }

  .hero-stage__incoming .x-post__actions img {
    width: 14px;
    height: 14px;
  }

  .hero-stage__incoming .x-post__actions span:nth-child(n + 4) {
    display: none;
  }

  .hero-stage__incoming .x-post__verdict {
    padding: 8px 12px;
    font-size: 11px;
  }



  .demo__stats {
    gap: var(--space-6);
  }

  .demo .x-post__media {
    height: 140px;
  }

  .segmented span {
    padding: 10px 14px;
  }

  .price-card__plan,
  .price-card__pay {
    padding: var(--space-5);
  }

  .popup__row {
    flex-wrap: wrap;
  }

  .faq__question {
    font-size: var(--text-md);
  }

  .faq__answer {
    padding: 0 var(--space-5) var(--space-5) var(--space-5);
  }
}
