/* Pricing page — membership hero, plan cards, toggle, FAQ, discover CTA. */

/* =========================================================
   Hero — Our Membership
   ========================================================= */
.pricing-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}
.pricing-hero-inner {
  width: 100%;
  max-width: 1080px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.pricing-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pricing-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 70px;
  line-height: 67.2px;
  letter-spacing: -2.1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--title);
  text-wrap: balance;
}
.pricing-sub {
  max-width: 516px;
  text-wrap: balance;
}

/* Plans block: [toggle + cards] then note */
.plans-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.plans-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ---------- Yearly / Monthly toggle ---------- */
.plan-toggle {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 80px;
  cursor: pointer;
  user-select: none;
}
.pt-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 118px;
  height: 28px;
  background-color: var(--tile);
  border-radius: 18px;
  transition: left 0.3s var(--ease-appear), width 0.3s var(--ease-appear);
  z-index: 1;
}
.pt-seg {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 12px;
  border-radius: 18px;
}
.pt-seg > p {
  font-family: var(--font-book);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: -0.14px;
  color: var(--muted);
  transition: color 0.3s ease;
}
.pt-seg.active > p { color: var(--title); }
.pt-badge {
  background-color: rgba(240, 240, 240, 0.96);
  border-radius: 12px;
  padding: 2px 6px 3px;
}
.pt-badge p {
  font-family: var(--font-demi);
  font-size: 10px;
  line-height: 12px;
  letter-spacing: -0.1px;
  color: rgb(0, 0, 0);
  white-space: nowrap;
}

/* ---------- Plan cards ---------- */
.plans-block {
  /* Arpy iridescent gradient — exact app value (same as home.css .upcoming). */
  --grad-arpy: linear-gradient(90deg, #cd93ff 0%, #70e2ff 20%, #9fff5b 40%, #ffe83f 60%, #ffa647 80%, #ff75c3 100%);
}
.plans-grid {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.plan-card {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.plan-card--pro {
  /* Iridescent hairline + soft outer halo — same language as .btn--primary/.btn--glow.
     (Static fallback under the animated ::before ring.) */
  border: 1px solid transparent;
  background: linear-gradient(var(--tile), var(--tile)) padding-box,
              var(--grad-arpy) border-box;
  box-shadow: rgba(255, 255, 255, 0.22) 0px 48px 57px -20px inset,
              rgba(255, 255, 255, 0.12) 0px 0px 48px 0px;
}
.plan-card--pro > * { position: relative; z-index: 1; }
/* Animated iridescent ring — 1px, slow drift, loopable gradient. */
.plan-card--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background-image: linear-gradient(90deg, #cd93ff 0%, #70e2ff 16.67%, #9fff5b 33.33%, #ffe83f 50%, #ffa647 66.67%, #ff75c3 83.33%, #cd93ff 100%);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: pro-ring 9s linear infinite;
  pointer-events: none;
  z-index: 2;
}
/* Soft iridescent bloom under the card header. */
.plan-card--pro::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -34px;
  height: 104px;
  background-image: var(--grad-arpy);
  filter: blur(46px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
@keyframes pro-ring {
  to { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-card--pro::before { animation: none; }
}
.plan-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* Fixed head height so the feature grid starts at the same y in every card
     (row-to-row alignment across the three cards). 147px = tallest head
     (Personal's 3-line description) at desktop and tablet widths. */
  min-height: 147px;
}
.plan-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-name p,
.plan-desc {
  font-family: var(--font-book);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--title);
}
.plan-badge {
  background-color: rgba(240, 240, 240, 0.96);
  border-radius: 16px;
  padding: 6px 8px 6px 9px;
}
.plan-badge p {
  font-family: var(--font-demi);
  font-size: 12px;
  line-height: 10px;
  color: rgb(0, 0, 0);
  white-space: nowrap;
}
/* Pro "Popular" badge — iridescent chip, black text (chatoyance accent). */
.plan-card--pro .plan-badge {
  background-color: transparent;
  background-image: var(--grad-arpy);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
/* Lifetime / Enterprise badges — outlined, sober counterpart to the solid "Popular". */
.plan-badge--outline {
  background-color: transparent;
  border: 1px solid var(--outline);
  padding: 5px 7px 5px 8px;
}
.plan-badge--outline p { color: var(--title); }
.plan-price {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  height: 36px;
}
.price-cur, .price-num, .price-custom {
  font-family: var(--font-medium);
  font-size: 36px;
  line-height: 36px;
  letter-spacing: -1.8px;
  color: var(--title);
}
.price-num {
  letter-spacing: 0;
  margin-left: 1.5px;
}
.price-suffix {
  margin-left: 5px;
  padding-bottom: 2px;
}
.price-suffix p {
  font-family: var(--font-book);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.14px;
  color: var(--title);
}
.plan-desc {
  margin-top: 12px;
  /* Slightly tighter leading than body copy (24px felt too airy under the price). */
  line-height: 21px;
  text-wrap: balance;
}
.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
}
.feat-ico {
  width: 14px;
  height: 14px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.feat-ico svg { display: block; width: 14px; height: 14px; }
.plan-feats p {
  font-family: var(--font-book);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.14px;
  color: var(--title);
  opacity: 0.75;
}
/* Comparison states — same row grid in every card:
   included = discreet green check, excluded = gray cross (never red). */
.feat--on .feat-ico { background-color: rgba(76, 175, 80, 0.16); }
.feat--on .feat-ico svg path { stroke: #4caf50; }
.feat--off .feat-ico { background-color: rgba(255, 255, 255, 0.07); }
.feat--off .feat-ico svg path { stroke: var(--muted); }
/* light: the faint white "off" chip is invisible on the light card → faint dark */
[data-theme="light"] .feat--off .feat-ico { background-color: rgba(0, 0, 0, 0.05); }
.feat--off p { opacity: 0.38; }
/* Pro-exclusive rows — small iridescent sparkle next to the check. */
.feat-spark { display: flex; flex: none; margin-left: 2px; }
.feat-spark svg { display: block; width: 12px; height: 12px; }
.plan-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 8px 20px;
  border-radius: 56px;
  background-color: rgb(38, 38, 38);
}
.plan-btn p {
  font-family: var(--font-medium);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.14px;
  text-align: center;
  color: var(--title);
}
.plan-btn--bright {
  background-color: transparent;
  background-image: var(--grad-iridescent);
  box-shadow: rgba(255, 255, 255, 0.35) 0px 0px 56px 0px;
}
.plan-btn--bright p { color: rgb(0, 0, 0); }

/* ---------- Enterprise — wide contact card below the row ---------- */
.plan-wide-row {
  width: 100%;
  display: flex;
  justify-content: center;
  /* plans-widget gap is 40px; pull back to match the 16px card gap. */
  margin-top: -24px;
}
.plan-card--enterprise {
  width: calc((100% - 32px) / 3 * 2 + 16px);
  flex: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 28px;
  border-color: var(--border-soft);
  background-color: transparent;
  /* Quiet sheen along the top edge — premium without competing with Pro. */
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 38%);
}
.ent-main {
  width: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ent-main .plan-btn { align-self: stretch; }
.plan-card--enterprise .plan-btn {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--outline);
}
.ent-feats {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  align-content: center;
}
.ent-feats li { height: auto; min-height: 18px; align-items: flex-start; }
.ent-feats .feat-ico { margin-top: 2px; }

/* Early-access note */
.plans-note {
  max-width: 480px;
  opacity: 0.25;
}
.plans-note p {
  font-family: var(--font-book);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.14px;
  text-align: center;
  color: var(--title);
}

/* =========================================================
   FAQ — Common Questions
   ========================================================= */
.faq {
  padding: 80px 0;
}
.faq-inner {
  width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.faq-title span {
  display: inline-block;
  background-image: linear-gradient(158deg, rgba(240, 240, 240, 0.96) 0%, rgb(143, 143, 143) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* light: light→grey sheen is invisible on white — mirror to near-black→grey */
[data-theme="light"] .faq-title span {
  background-image: linear-gradient(158deg, rgba(17, 17, 17, 0.96) 0%, rgb(120, 120, 120) 100%);
}
.faq-sub {
  font-family: var(--font-book);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  text-align: center;
  color: var(--title);
}
.faq-sub a { color: var(--nav-link); }
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background-color: var(--card);
  border-radius: 16px;
  box-shadow: rgba(255, 255, 255, 0.04) 0px -1px 0px 0px inset;
  padding: 16px 16px 16px 20px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.faq-q p {
  flex: 1;
  font-family: var(--font-book);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: rgb(255, 255, 255);
}
/* light: hardcoded white question text → near-black on the light card */
[data-theme="light"] .faq-q p { color: var(--title); }
.faq-chev {
  width: 32px;
  height: 32px;
  border-radius: 160px;
  background-color: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.35s var(--ease-appear);
}
.faq-chev svg { display: block; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-appear);
}
.faq-a-inner {
  padding-top: 12px;
}
.faq-a-inner p {
  font-family: var(--font-book);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--title);
}
.faq-a-inner p + p { margin-top: 20px; }
.faq-a-inner a { color: var(--nav-link); }

/* =========================================================
   Discover — CTA card (same component as home; duplicated
   here because home.css is not loaded on this page)
   ========================================================= */
.discover { background: var(--bg); padding: 80px 0 160px; }
.discover-card {
  position: relative;
  border-radius: 16px;
  background: var(--card);
  padding: 48px 48px 0;
  height: 365px;
  display: flex;
  gap: 10px;
  overflow: hidden;
}
.discover-glow {
  position: absolute;
  border-radius: 101px;
  filter: blur(100px);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.discover-glow--a { left: 216px; top: -110px; width: 801px; height: 202px; background: #fff; opacity: 0.04; }
.discover-glow--b { left: 1093px; top: -102px; width: 189px; height: 540px; background: #fff; opacity: 0.04; }
.discover-glow--c { left: 792px; top: -110px; width: 356px; height: 202px; background: rgba(171, 171, 171, 0.67); opacity: 0.04; }
.discover-glow--d { left: 740px; top: 273px; width: 356px; height: 202px; background: rgb(120, 77, 38); opacity: 0.13; }
.discover-spectrum {
  position: absolute;
  left: 387px;
  top: -84px;
  width: 1032px;
  height: 582px;
  border-radius: 20px;
  background-image: linear-gradient(120deg, rgb(242, 255, 0) 0%, rgb(194, 10, 0) 22.1794%, rgb(0, 58, 158) 49.9331%, rgb(255, 0, 34) 74.4633%, rgb(87, 0, 0) 100%);
  filter: grayscale(1) blur(80px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}
.discover-left {
  position: relative;
  z-index: 6;
  max-width: 52%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.discover-left h3 {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 48px;
  line-height: 50.4px;
  letter-spacing: -1.92px;
  color: var(--disc-title);
}
.discover-left .sub { text-align: left; color: var(--title); opacity: 0.75; }
.discover-cta { margin-top: 12px; }
.discover-visual {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 563px;
  flex: none;
  align-self: flex-end;
  background: rgb(0, 0, 0);
  border-radius: 12px 12px 0 0;
}
.discover-frame {
  position: relative;
  z-index: 4;
  background: var(--card);
  border-radius: 12px 12px 0 0;
  padding: 3px 3px 0;
  overflow: hidden;
  /* bottom fade to the black backing (verbatim from the deployed site) */
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 40%);
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 40%);
}
.discover-frame img {
  width: 100%;
  height: 314px;
  object-fit: cover;
  object-position: top;
  border-radius: 9px 9px 0 0;
  display: block;
}
.discover-blur {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 157px;
  z-index: 7;
  pointer-events: none;
}
/* Progressive blur — 8 layers, verbatim from the deployed site (no darkening gradient). */
.discover-blur div { position: absolute; inset: 0; }
.discover-blur div:nth-child(1) { backdrop-filter: blur(0.234375px); -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 0%, rgb(0,0,0) 12.5%, rgb(0,0,0) 25%, rgba(0,0,0,0) 37.5%); mask-image: linear-gradient(rgba(0,0,0,0) 0%, rgb(0,0,0) 12.5%, rgb(0,0,0) 25%, rgba(0,0,0,0) 37.5%); }
.discover-blur div:nth-child(2) { backdrop-filter: blur(0.46875px);  -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 12.5%, rgb(0,0,0) 25%, rgb(0,0,0) 37.5%, rgba(0,0,0,0) 50%); mask-image: linear-gradient(rgba(0,0,0,0) 12.5%, rgb(0,0,0) 25%, rgb(0,0,0) 37.5%, rgba(0,0,0,0) 50%); }
.discover-blur div:nth-child(3) { backdrop-filter: blur(0.9375px);   -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 25%, rgb(0,0,0) 37.5%, rgb(0,0,0) 50%, rgba(0,0,0,0) 62.5%); mask-image: linear-gradient(rgba(0,0,0,0) 25%, rgb(0,0,0) 37.5%, rgb(0,0,0) 50%, rgba(0,0,0,0) 62.5%); }
.discover-blur div:nth-child(4) { backdrop-filter: blur(1.875px);    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 37.5%, rgb(0,0,0) 50%, rgb(0,0,0) 62.5%, rgba(0,0,0,0) 75%); mask-image: linear-gradient(rgba(0,0,0,0) 37.5%, rgb(0,0,0) 50%, rgb(0,0,0) 62.5%, rgba(0,0,0,0) 75%); }
.discover-blur div:nth-child(5) { backdrop-filter: blur(3.75px);     -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 50%, rgb(0,0,0) 62.5%, rgb(0,0,0) 75%, rgba(0,0,0,0) 87.5%); mask-image: linear-gradient(rgba(0,0,0,0) 50%, rgb(0,0,0) 62.5%, rgb(0,0,0) 75%, rgba(0,0,0,0) 87.5%); }
.discover-blur div:nth-child(6) { backdrop-filter: blur(7.5px);      -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 62.5%, rgb(0,0,0) 75%, rgb(0,0,0) 87.5%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(rgba(0,0,0,0) 62.5%, rgb(0,0,0) 75%, rgb(0,0,0) 87.5%, rgba(0,0,0,0) 100%); }
.discover-blur div:nth-child(7) { backdrop-filter: blur(15px);       -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 75%, rgb(0,0,0) 87.5%, rgb(0,0,0) 100%); mask-image: linear-gradient(rgba(0,0,0,0) 75%, rgb(0,0,0) 87.5%, rgb(0,0,0) 100%); }
.discover-blur div:nth-child(8) { backdrop-filter: blur(30px);       -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 87.5%, rgb(0,0,0) 100%); mask-image: linear-gradient(rgba(0,0,0,0) 87.5%, rgb(0,0,0) 100%); }

/* =========================================================
   Tablet (<=1199.98)
   ========================================================= */
@media (max-width: 1199.98px) {
  .pricing-hero { padding-top: 120px; }
  .pricing-title {
    font-size: 56px;
    line-height: 53.76px;
    letter-spacing: -1.68px;
  }
  .plan-card--enterprise { width: 100%; }

  .discover-card {
    flex-direction: column;
    height: 784px;
    gap: 48px;
  }
  .discover-left { max-width: none; }
  .discover-visual { margin-left: 0; width: 100%; align-self: center; }
  .discover-frame img { height: 466px; }
}

/* =========================================================
   Mobile (<=809.98)
   ========================================================= */
@media (max-width: 809.98px) {
  .pricing-hero { padding-bottom: 64px; }
  .pricing-hero-inner { padding: 0 16px; gap: 32px; }
  .pricing-head { align-items: flex-start; }
  .pricing-title {
    font-size: 48px;
    line-height: 46.08px;
    letter-spacing: -1.44px;
    text-align: left;
  }
  .pricing-sub { text-align: left; max-width: none; }
  .plans-block { gap: 24px; }
  .plans-widget { gap: 24px; align-items: flex-start; }
  .plans-grid { flex-direction: column; gap: 24px; }
  .plan-card, .plan-card--pro { flex: none; width: 100%; }
  /* Stacked cards — row alignment becomes internal, heads size naturally. */
  .plan-head { min-height: 0; }
  .plan-wide-row { margin-top: 0; }
  .plan-card--enterprise {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 23px;
  }
  .ent-main { display: contents; }
  .ent-feats {
    order: 0;
    grid-template-columns: 1fr;
    margin-top: 16px;
    gap: 8px;
  }
  .plan-card--enterprise .plan-btn { order: 1; }
  .plans-note { max-width: none; align-self: center; }

  .faq { padding: 48px 0 64px; }
  .faq-inner { width: 100%; padding: 0 24px; }
  .faq-head { align-items: flex-start; }
  .faq-sub { text-align: left; }
  .faq-list { margin-top: 32px; }

  .discover { padding: 32px 0; }
  .discover-card { padding: 24px 24px 0; height: 549px; gap: 40px; }
  .discover-left { gap: 20px; }
  .discover-frame img { height: 162px; }
  .discover-blur { height: 90px; }
}
