/* =========================================================
   Cavalier — Method, Vault, Pricing, FAQ, CTA, Footer
   ========================================================= */

/* ---------- Method ---------- */

.method { position: relative; }

.method__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.method__intro { position: sticky; top: 120px; }
.method__intro .h2 { margin-top: 20px; }
.method__intro .lede { margin-top: 22px; }

.method__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-top: 36px;
}

.method__note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid var(--accent);
  color: var(--muted-2);
}
.method__note strong {
  color: var(--bone);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-transform: none;
}

.method__steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease), background 0.45s var(--ease);
}
.step:hover {
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.step__num {
  align-self: start;
  padding-top: 6px;
  color: var(--muted-2);
}

.step__body h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.step__body p {
  margin-top: 8px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.step__img {
  width: 150px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.78);
  transition: filter 0.55s var(--ease), transform 0.55s var(--ease);
}
.step:hover .step__img { filter: none; transform: scale(1.035); }

/* ---------- Vault ---------- */

.vault { position: relative; }

.vault__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(118px, 11.6vw, 168px);
  gap: 14px;
}

.vault__item {
  position: relative;
  grid-column: span 3;
  grid-row: span 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111;
  cursor: pointer;
}

.vault__item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.vault__item:nth-child(6),
.vault__item:nth-child(7) { grid-row: span 2; }
.vault__item:nth-child(8) { grid-column: span 6; grid-row: span 2; }

.vault__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.95s var(--ease);
}

.vault__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0.72;
  transition: opacity 0.4s var(--ease);
}
.vault__item:hover img { transform: scale(1.055); }
.vault__item:hover::after { opacity: 1; }

.vault__item figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.9;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.vault__item:hover figcaption { opacity: 1; transform: none; }
.vault__item figcaption span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 8.5px;
}
.vault__item figcaption strong {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* ---------- Pricing ---------- */

.pricing {
  position: relative;
  background: radial-gradient(55% 42% at 50% 0%, rgba(255, 90, 54, 0.075), transparent 72%);
}

.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.pricing__head .h2 {
  margin-top: 20px;
  font-size: clamp(2.55rem, 5.2vw, 5rem);
}
.pricing__head .lede {
  margin-top: 22px;
  max-width: 52ch;
}

.billing {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
}

.billing__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.billing__btn span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
}
.billing__btn.is-active { background: var(--bone); color: var(--ink); }
.billing__btn.is-active span { color: #0a0a0a; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.plan:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.plan--featured {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}
.plan--featured:hover { background: var(--bone); }

.plan__badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0b0b;
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.plan__top h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.plan__top p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.plan--featured .plan__top p { color: rgba(10, 10, 10, 0.58); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 30px;
}
.price {
  font-size: clamp(2.5rem, 3.8vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.plan__per { color: var(--muted); font-size: 13px; }
.plan--featured .plan__per { color: rgba(10, 10, 10, 0.55); }

.plan__billing {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 8.5px;
}
.plan--featured .plan__billing { color: rgba(10, 10, 10, 0.5); }

.plan .btn { margin-top: 24px; }

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan--featured .plan__features { border-color: rgba(10, 10, 10, 0.14); }

.plan__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}
.plan--featured .plan__features li { color: rgba(10, 10, 10, 0.64); }

.plan__features li::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: currentColor;
  opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pricing__note {
  margin-top: 28px;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.faq__intro { position: sticky; top: 120px; }
.faq__intro .h2 { margin-top: 18px; }
.faq__intro .lede { margin-top: 22px; }
.faq__intro a {
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq__intro a:hover { color: var(--accent); border-color: var(--accent); }

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

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 25px 0;
  color: var(--bone);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  text-align: left;
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--accent); }

.faq__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item.is-open .faq__icon {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height 0.45s var(--ease);
}
.faq__a p {
  max-width: 56ch;
  padding: 0 40px 25px 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(100px, 12vw, 170px) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.8);
}

.cta__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 40% at 50% 78%, rgba(255, 90, 54, 0.16), transparent 72%),
    radial-gradient(55% 60% at 50% 50%, rgba(10, 10, 10, 0.52), rgba(10, 10, 10, 0.9) 76%),
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 10, 0.3) 22%, rgba(10, 10, 10, 0.5) 72%, var(--bg) 100%);
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__inner .eyebrow { color: rgba(255, 255, 255, 0.54); }

.cta__title {
  margin-top: 22px;
  max-width: 14ch;
  font-size: clamp(2.75rem, 6.3vw, 6.3rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.cta__inner .lede {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.cta__form {
  display: flex;
  gap: 8px;
  width: min(100%, 520px);
  margin-top: 36px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta__form input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--bone);
  font-size: 14px;
  outline: none;
}
.cta__form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.cta__form .btn { padding: 13px 22px; }

.cta__micro {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
}
.cta__micro a {
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.cta__success {
  margin-top: 26px;
  padding: 18px 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cta__success .eyebrow { color: var(--accent); justify-content: center; }
.cta__success-text { margin-top: 8px; color: var(--bone); font-size: 15px; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding-top: clamp(50px, 7vw, 80px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 60px;
  padding-bottom: 56px;
}

.footer__brand p {
  max-width: 32ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 9px;
}
.footer__status .dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(126, 240, 178, 0.7);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer__cols h4 {
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 400;
}

.footer__cols a {
  display: block;
  padding: 6px 0;
  color: rgba(242, 239, 231, 0.7);
  font-size: 14px;
  transition: color 0.3s var(--ease);
}
.footer__cols a:hover { color: var(--accent); }

.footer__word {
  margin-bottom: 20px;
  color: transparent;
  font-size: clamp(4.4rem, 16.3vw, 15rem);
  font-weight: 500;
  line-height: 0.76;
  letter-spacing: -0.06em;
  text-align: center;
  -webkit-text-stroke: 1px rgba(242, 239, 231, 0.15);
  user-select: none;
  pointer-events: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}
.footer__bottom .mono { font-size: 9px; }
.footer__bottom span:nth-child(2) { flex: 1; text-align: center; }
