/* Public marketing chrome: landing, pricing, build, legal. */

.public-body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  background: rgb(var(--gray-950));
  color: rgb(var(--gray-100));
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-body > .landing-main { flex: 1 0 auto; }
.public-body a { text-decoration: none; }

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgb(var(--gray-950) / 0.72);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.landing-nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}
.landing-nav__left { justify-self: start; }
.landing-nav__mid {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.landing-nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-nav a.ghost,
.landing-nav button.ghost {
  font-size: 0.875rem;
  color: rgb(var(--gray-400));
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.landing-nav a.ghost:hover,
.landing-nav button.ghost:hover,
.landing-nav a.ghost.is-on { color: rgb(var(--gray-100)); }
.ghost.hidden, .hidden { display: none !important; }

.landing-nav__burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(var(--gray-800));
  border-radius: 0.5rem;
  background: rgb(var(--gray-900));
  color: rgb(var(--gray-100));
  cursor: pointer;
}
.landing-nav__burger svg { width: 1.15rem; height: 1.15rem; }

.landing-nav__drawer {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid rgb(var(--gray-800) / 0.6);
  background: rgb(var(--gray-950) / 0.96);
}
.landing-nav__drawer a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: rgb(var(--gray-200));
  font-size: 0.95rem;
}
.landing-nav.is-open .landing-nav__drawer { display: flex; }

.signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: rgb(var(--accent));
  white-space: nowrap;
}
.signin-btn:hover { filter: brightness(1.08); }

.buy-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  font-weight: 550;
  text-align: center;
}
.buy-btn {
  background: rgb(var(--accent));
  color: #fff;
}
.buy-btn:hover { filter: brightness(1.08); }
.ghost-btn {
  border: 1px solid rgb(var(--gray-700));
  color: rgb(var(--gray-100));
  background: transparent;
}
.ghost-btn:hover { background: rgb(var(--gray-900)); }

.landing-home {
  background:
    radial-gradient(80vw 56vh at 50% 32%, rgb(var(--accent) / 0.26), transparent 62%),
    rgb(var(--gray-950));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100svh - 4rem);
  min-height: calc(100dvh - 4rem);
  padding: 3rem 1.5rem 4.5rem;
  box-sizing: border-box;
}
.hero__mark {
  height: 4.75rem;
  width: auto;
  margin: 0 0 2rem;
}
.hero__tag {
  font-size: clamp(1.85rem, 5.2vw, 3.35rem);
  font-weight: 560;
  letter-spacing: -0.038em;
  line-height: 1.12;
  max-width: 22ch;
  color: rgb(var(--gray-50));
  margin: 0;
}
.hero__lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: rgb(var(--gray-400));
  font-size: 1.05rem;
  line-height: 1.55;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero__chips a,
.hero__chips span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--gray-300));
  border: 1px solid rgb(var(--gray-700));
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.hero__chips a:hover {
  color: rgb(var(--gray-50));
  border-color: rgb(var(--gray-500));
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
}
.hero__fine {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgb(var(--gray-500));
}
.hero__fine a { color: rgb(var(--gray-300)); text-decoration: underline; text-underline-offset: 3px; }

.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0 0 0.65rem;
}
.section-lede {
  color: rgb(var(--gray-400));
  line-height: 1.6;
  max-width: 40rem;
  margin: 0.75rem 0 0;
}
.loop h2,
.proof h2,
.prose h2,
.chapter h2,
.product h2,
.offer h2,
.plans h2,
.builds h2,
.close h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.prose,
.chapter {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.35rem 1.25rem 2.5rem;
}
.chapter {
  padding: 3.25rem 1.25rem 1.25rem;
}
.chapter--wide { max-width: 52rem; }
.prose h2,
.chapter h2 { margin: 0 0 0.9rem; }
.prose p,
.chapter p {
  color: rgb(var(--gray-400));
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 0.9rem;
}
.prose p:last-child,
.chapter p:last-child { margin-bottom: 0; }

.steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.steps__num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.45rem;
}
.steps strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 560;
  margin-bottom: 0.4rem;
  color: rgb(var(--gray-100));
}
.steps span:last-child {
  color: rgb(var(--gray-400));
  font-size: 0.9rem;
  line-height: 1.55;
}

.arch {
  margin: 2.75rem auto 0;
  max-width: 36rem;
  text-align: center;
}
.arch__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.arch__row span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--gray-400));
  padding: 0.3rem 0.7rem;
}
.arch__join {
  width: 1px;
  height: 1.35rem;
  margin: 0.15rem auto;
  background: linear-gradient(180deg, rgb(var(--gray-700)), #7457d1);
}
.arch__core {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  padding: 0.45rem 1rem;
}

.product {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
}
.product__intro { max-width: 40rem; }
.caps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.caps strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 560;
  margin-bottom: 0.4rem;
}
.caps span {
  color: rgb(var(--gray-400));
  font-size: 0.92rem;
  line-height: 1.55;
}

.loop {
  padding: 0.5rem 1.25rem 2.75rem;
}
.loop__inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}
.loop__inner .section-lede { margin-left: auto; margin-right: auto; }
.loop__nodes {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
}
.loop__nodes > li:not(.loop__wire) {
  flex: 1 1 0;
  max-width: 22rem;
  text-align: left;
}
.loop__num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.45rem;
}
.loop__nodes strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 560;
  margin-bottom: 0.45rem;
}
.loop__nodes span:last-child {
  color: rgb(var(--gray-400));
  font-size: 0.9rem;
  line-height: 1.55;
}
.loop__wire { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes reveal-up {
  to { opacity: 1; transform: none; }
}

.proof {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
}
.jello {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgb(var(--gray-900) / 0.45);
  border: 0;
  border-radius: 999px;
  padding: 4px;
  width: min(26rem, 100%);
  margin-top: 1.5rem;
}
.jello__blob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #7457d1;
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.jello[data-demo="business"] .jello__blob { transform: translateX(100%); }
.jello[data-demo="scale"] .jello__blob { transform: translateX(200%); }
.jello button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: rgb(var(--gray-400));
  font-size: 0.8rem;
  font-weight: 550;
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.jello[data-demo="basic"] button[data-demo="basic"],
.jello[data-demo="business"] button[data-demo="business"],
.jello[data-demo="scale"] button[data-demo="scale"] {
  color: #fff;
}

.frame {
  background: rgb(var(--gray-950) / 0.55);
  border: 0;
  border-radius: 1.1rem;
  min-height: 20rem;
  padding: 0.85rem 1rem 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
  display: flex;
  flex-direction: column;
}
.frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}
.frame__chrome i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
  background: rgb(var(--gray-700));
  display: block;
}
.frame__chrome span {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgb(var(--gray-500));
}
.frame iframe {
  flex: 1;
  width: 100%;
  min-height: 20rem;
  border: 0;
  border-radius: 0.7rem;
  background: #0b0b10;
}

.offer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3.25rem;
  scroll-margin-top: 5.5rem;
}
.offer__intro {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.offer__intro .section-lede { max-width: 42rem; }
.builds__band {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgb(var(--gray-800));
}
.builds__head { margin-bottom: 1.25rem; max-width: 42rem; }
.paths__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.path-card {
  background: rgb(var(--gray-900));
  border: 1px solid rgb(var(--gray-800));
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.path-card__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0 0 0.5rem;
}
.path-card h3 {
  font-size: 1.25rem;
  font-weight: 560;
  margin: 0 0 0.6rem;
}
.path-card p {
  color: rgb(var(--gray-400));
  line-height: 1.5;
  margin: 0;
}
.path-card ul {
  margin: 1rem 0 1.35rem;
  padding: 0 0 0 1.1rem;
  color: rgb(var(--gray-300));
  line-height: 1.7;
  flex: 1;
}
.path-card .buy-btn,
.path-card .ghost-btn { align-self: flex-start; }

.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.plan-card {
  background: rgb(var(--gray-900));
  border: 1px solid rgb(var(--gray-800));
  border-radius: 1.1rem;
  padding: 1.35rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.plan-card--featured {
  box-shadow: 0 0 0 1px rgb(var(--accent) / 0.7);
}
.plan-card__badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.2rem;
}
.plan-card__who {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0;
}
.plan-card h3 { font-size: 1.2rem; font-weight: 560; margin: 0; }
.plan-card p { color: rgb(var(--gray-400)); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.plan-card__price {
  font-size: 1.85rem;
  font-weight: 560;
  margin: 0.55rem 0 0.35rem;
}
.plan-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgb(var(--gray-500));
}
.plan-card ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1.1rem;
  color: rgb(var(--gray-400));
  font-size: 0.85rem;
  line-height: 1.7;
  flex: 1;
}
.plans {
  scroll-margin-top: 5.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
}
.plans__custom {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgb(var(--gray-400));
}
.plans__custom a { color: rgb(var(--gray-200)); text-decoration: underline; text-underline-offset: 3px; }
.plans__more {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.plans__more a { color: rgb(var(--gray-300)); text-decoration: underline; text-underline-offset: 3px; }

.builds__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.build-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgb(var(--gray-900));
  border: 1px solid rgb(var(--gray-800));
  border-radius: 0.9rem;
  padding: 1rem 1.05rem;
  color: inherit;
}
.build-chip:hover { border-color: rgb(var(--gray-600)); }
.build-chip strong { font-weight: 560; }
.build-chip span { font-size: 0.8rem; color: rgb(var(--gray-500)); }

.close {
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
}
.close p {
  color: rgb(var(--gray-400));
  margin: 0.75rem auto 0;
  max-width: 32rem;
}
.close p a { color: rgb(var(--gray-300)); text-decoration: underline; text-underline-offset: 3px; }

.public-footer {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem calc(2.25rem + env(safe-area-inset-bottom));
  font-size: 0.875rem;
  color: rgb(var(--gray-500));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgb(var(--gray-800) / 0.45);
}
.public-footer a,
.public-footer button {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.public-footer a:hover,
.public-footer button:hover { color: rgb(var(--gray-300)); }
.public-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.legal-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

@media (max-width: 900px) {
  .landing-nav__inner {
    grid-template-columns: 1fr auto auto;
  }
  .landing-nav__mid { display: none; }
  .landing-nav__burger { display: inline-flex; }
  .landing-nav__right .ghost { display: none; }
  .loop__nodes {
    flex-direction: column;
    gap: 1.25rem;
  }
  .loop__nodes > li:not(.loop__wire) { max-width: none; }
  .loop__wire { display: none; }
  .steps,
  .caps {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .paths__grid,
  .plans__grid {
    grid-template-columns: 1fr;
  }
  .builds__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: calc(100svh - 4rem);
    min-height: calc(100dvh - 4rem);
    padding: 2.5rem 1.1rem 3rem;
  }
  .hero__mark { height: 3.35rem; margin-bottom: 1.75rem; }
  .hero__tag { max-width: 18ch; }
  .hero__actions,
  .close .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .buy-btn,
  .hero__actions .ghost-btn,
  .close .hero__actions .buy-btn,
  .close .hero__actions .ghost-btn { width: 100%; }
  .jello { grid-template-columns: 1fr; border-radius: 0.85rem; }
  .jello__blob { width: calc(100% - 8px); height: calc((100% - 8px) / 3); }
  .jello[data-demo="business"] .jello__blob { transform: translateY(100%); }
  .jello[data-demo="scale"] .jello__blob { transform: translateY(200%); }
  .builds__grid { grid-template-columns: 1fr; }
  .public-footer { flex-direction: column; align-items: flex-start; }
}

/* Landing uses the same outer width as the nav. Copy stays a readable
   measure; steps, capabilities, and the demo use the remaining desktop. */
.landing-home .landing-main {
  width: min(72rem, calc(100% - 4rem));
  margin: 0 auto;
  padding-bottom: 2rem;
  text-align: left;
}
.landing-home .landing-main > section {
  max-width: none;
  width: 100%;
  padding: 5.5rem 0 0;
  text-align: left;
  scroll-margin-top: 5.5rem;
}
.landing-home .landing-main .chapter__intro,
.landing-home .landing-main .product__intro,
.landing-home .landing-main .proof__copy {
  max-width: 38rem;
}
.landing-home .landing-main h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.landing-home .landing-main p,
.landing-home .landing-main li,
.landing-home .landing-main .section-kicker,
.landing-home .landing-main .section-lede {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.landing-home .landing-main .section-lede {
  max-width: 38rem;
}
.landing-home .landing-main .steps,
.landing-home .landing-main .caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2.75rem;
  text-align: left;
  margin-top: 3rem;
}
.landing-home .landing-main .arch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: none;
  margin: 3.25rem 0 0;
  text-align: left;
}
.landing-home .landing-main .arch__row {
  justify-content: flex-start;
  flex: 1 1 auto;
}
.landing-home .landing-main .arch__join {
  width: auto;
  flex: 1 1 2.5rem;
  height: 1px;
  min-width: 1.25rem;
  margin: 0;
  background: linear-gradient(90deg, rgb(var(--gray-700)), #7457d1);
}
.landing-home .landing-main .arch__core {
  flex: 0 0 auto;
}
.landing-home .landing-main .proof {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.15fr);
  gap: 3rem;
  align-items: center;
}
.landing-home .landing-main .jello {
  width: min(22rem, 100%);
  margin: 1.75rem 0 0;
}
.landing-home .landing-main .frame {
  width: 100%;
}
.landing-home .landing-main .close {
  text-align: center;
  padding: 6.5rem 0 4rem;
}
.landing-home .landing-main .close h2,
.landing-home .landing-main .close p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .landing-home .landing-main {
    width: min(72rem, calc(100% - 2.5rem));
  }
  .landing-home .landing-main > section {
    padding-top: 4rem;
  }
  .landing-home .landing-main .steps,
  .landing-home .landing-main .caps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .landing-home .landing-main .proof {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .landing-home .landing-main .arch {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .landing-home .landing-main .arch__row {
    justify-content: center;
  }
  .landing-home .landing-main .arch__join {
    width: 1px;
    flex: 0 0 1.35rem;
    min-width: 0;
    height: 1.35rem;
    background: linear-gradient(180deg, rgb(var(--gray-700)), #7457d1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.landing-home) { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  .jello__blob,
  .reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Products menu in the public nav. */
.nav-products { position: relative; }
.nav-products > summary {
  list-style: none;
  font-size: 0.875rem;
  color: rgb(var(--gray-400));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-products > summary::-webkit-details-marker { display: none; }
.nav-products > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-products > summary:hover,
.nav-products[open] > summary { color: rgb(var(--gray-100)); }
.nav-products__menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  width: 19rem;
  padding: 0.4rem;
  border: 1px solid rgb(var(--gray-800));
  border-radius: 0.75rem;
  background: rgb(var(--gray-900));
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  display: grid;
  gap: 0.15rem;
}
.nav-products__menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
}
.nav-products__menu a:hover { background: rgb(var(--gray-800)); }
.nav-products__menu strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgb(var(--gray-50));
}
.nav-products__menu span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgb(var(--gray-400));
}
.landing-nav__label {
  margin: 0.4rem 0 0;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
}

/* Product cards on the landing. */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.products__card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgb(var(--gray-800));
  border-radius: 1rem;
  background: rgb(var(--gray-900) / 0.6);
}
.products__name {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #c4b5fd;
}
.products__card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: rgb(var(--gray-50));
}
.products__card > p:not(.products__name) {
  margin: 0;
  color: rgb(var(--gray-300));
  line-height: 1.6;
}
.products__card ul {
  margin: 1.1rem 0 1.5rem;
  padding-left: 1.1rem;
  color: rgb(var(--gray-400));
  font-size: 0.92rem;
  line-height: 1.7;
}
.products__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(var(--gray-50));
  border-bottom: 1px solid rgb(var(--accent));
  padding-bottom: 0.1rem;
}
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .products__card { padding: 1.35rem; }
}

.plans__grid--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .plans__grid--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .plans__grid--quad { grid-template-columns: 1fr; }
}
.plan-card .buy-btn,
.plan-card .ghost-btn { width: 100%; margin-top: auto; }
button.buy-btn,
button.ghost-btn { font-family: inherit; cursor: pointer; }
button.buy-btn { border: 0; }
.plan-card input[type="number"] {
  width: 4.5rem;
  margin-left: 0.35rem;
  font: inherit;
  color: inherit;
  background: rgb(var(--gray-950));
  border: 1px solid rgb(var(--gray-700));
  border-radius: 0.45rem;
  padding: 0.25rem 0.4rem;
}
.plan-card__check { color: rgb(var(--gray-300)); font-size: 0.85rem; }
.plans > .plan-card__check { display: block; margin-top: 1.5rem; }

/* Full-width frames and buttons include their padding, so they never
   push the page wider than a phone screen. */
.frame,
.buy-btn,
.ghost-btn { box-sizing: border-box; }
