/* Pangea on top of the original page.
   The original scripts run untouched; this file only hides what Pangea does
   not have yet (download, GitHub, Discord, X, blog, docs, testimonials) and
   styles what waitlist.js adds (header CTA, hero form, enterprise section). */

/* ---------- Hidden original elements ---------- */

/* Header: social icons, nav to pages that do not exist here, download pill */
header .col-start-3 > .hidden.md\:flex,
header nav a[href="/blog"],
header nav a[href="/changelog"],
header nav a[href^="https://docs."],
header a.nrpHoW_download[href="/download"] { display: none !important; }

/* Hero: download button and GitHub link */
#download,
.uEFapG_github { display: none !important; }

/* Testimonials: real quotes about the original product; not Pangea's to show */
.t-panel-slide:has(> section.border-t.w-full) { display: none !important; }

/* Footer: the Security and Company groups only point at pages Pangea does not
   have; waitlist.js appends Pangea's own groups in their place. */
footer .WOMdyG_group:nth-child(2),
footer .WOMdyG_group:nth-child(3),
footer .WOMdyG_trust,
footer a[href="/grok-bot-alternative"],
footer a[href^="https://docs."],
footer a[href^="https://github.com"],
footer a[href^="https://trust."],
footer a[href^="/cdn-cgi"],
footer a[href^="mailto:"],
footer a[href="/blog"],
footer a[href="/changelog"],
footer a[href="/download"],
footer a[href="/terms"],
footer a[href="/privacy"],
footer a[href="/delete-account"] { display: none !important; }

/* ---------- Waitlist form ---------- */

.pg-waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.pg-waitlist-row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.pg-input,
.pg-select {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 40px;
  border: 1px solid rgba(28, 26, 23, 0.14);
  background: rgba(252, 251, 249, 0.92);
  color: #1c1a17;
  font: 500 15px/1 GeistSans, 'GeistSans Fallback', -apple-system, system-ui, sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pg-input::placeholder { color: #69645d; }

.pg-input:focus,
.pg-select:focus {
  border-color: #69645d;
  box-shadow: 0 0 0 3px rgba(28, 26, 23, 0.08);
}

.pg-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 40px;
  border: 1px solid #1c1a17;
  background: #1c1a17;
  color: #fcfbf9;
  font: 500 15px/1 GeistSans, 'GeistSans Fallback', -apple-system, system-ui, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}

.pg-button:hover { background: #33312e; }
.pg-button:active { transform: translateY(1px); }
.pg-button[disabled] { opacity: 0.6; cursor: progress; }

.pg-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5c5852;
  text-align: center;
  min-height: 20px;
}

.pg-note[data-state='success'] { color: #2b7346; }
.pg-note[data-state='error'] { color: #b91c1c; }

.pg-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 560px) {
  .pg-waitlist-row { flex-direction: column; }
  .pg-button { width: 100%; }
}

/* Enterprise form: a card with labelled fields on two rows. */
.pg-waitlist-card {
  max-width: 640px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgb(var(--card-border));
  background: rgb(var(--card-bg));
  box-shadow: 0 8px 28px rgba(37, 37, 34, 0.04);
  align-items: stretch;
  gap: 14px;
  text-align: left;
}

.pg-waitlist-head { margin-bottom: 4px; }
.pg-waitlist-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgb(var(--text-heading));
}
.pg-waitlist-head p { margin: 0; font-size: 14px; color: rgb(var(--text-body)); }

.pg-waitlist-card .pg-waitlist-row { gap: 12px; }

.pg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pg-field-grow { flex: 1 1 0; }
.pg-field-action { flex: 0 0 auto; }
.pg-field label,
.pg-label-spacer {
  display: block;
  height: 16px;
  font: 500 12px/16px GeistSans, 'GeistSans Fallback', -apple-system, system-ui, sans-serif;
  color: rgb(var(--text-muted));
}

.pg-waitlist-card .pg-input,
.pg-waitlist-card .pg-select,
.pg-waitlist-card .pg-button { border-radius: 12px; height: 46px; }
.pg-waitlist-card .pg-input,
.pg-waitlist-card .pg-select { background: rgb(var(--landing-bg)); width: 100%; }
.pg-waitlist-card .pg-button { width: 100%; min-width: 170px; }

.pg-select-wrap { position: relative; display: block; }
.pg-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.pg-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #5c5852;
  border-bottom: 1.5px solid #5c5852;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.pg-select:invalid,
.pg-select option[value=''] { color: #69645d; }

.pg-waitlist-card .pg-note { text-align: left; margin-top: 2px; }

@media (max-width: 560px) {
  .pg-waitlist-card { padding: 20px; }
  .pg-label-spacer { display: none; }
}

/* Proof line under the hero CTA and price line in the enterprise card. */
.pg-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(252, 251, 249, 0.8);
  border: 1px solid rgba(28, 26, 23, 0.08);
  font-size: 13px;
  line-height: 1.4;
  color: #5c5852;
  text-align: left;
}
.pg-proof img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pg-proof b { font-weight: 500; color: #1c1a17; white-space: nowrap; }

.pg-price {
  margin: 10px 0 0 !important;
  font: 500 13px/1.5 GeistSans, 'GeistSans Fallback', -apple-system, system-ui, sans-serif;
  color: rgb(var(--landing-text-active)) !important;
}

/* Hero: the form sits where the download button was, above the figures. */
.uEFapG_cta .pg-waitlist {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  animation: pg-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pg-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Enterprise section ---------- */

.pg-enterprise {
  position: relative;
  width: 100%;
  border-top: 1px solid rgb(var(--landing-frame-border-solid));
  background: rgb(var(--landing-bg));
}

.pg-enterprise-inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 72px 20px;
}

@media (min-width: 768px) { .pg-enterprise-inner { padding: 96px 60px; } }
@media (min-width: 1024px) { .pg-enterprise-inner { padding: 112px 80px; } }

.pg-enterprise-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pg-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--landing-text-active));
}

.pg-enterprise-head h2 {
  margin: 16px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(30px, 4.6vw, 48px);
  color: rgb(var(--text-heading));
}

.pg-enterprise-head p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: rgb(var(--text-body));
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 48px auto 0;
  max-width: 1100px;
}

.pg-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgb(var(--card-border));
  background: rgb(var(--card-bg));
}

.pg-card span {
  font-family: GeistMono, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: rgb(var(--text-muted));
}

.pg-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgb(var(--text-heading));
}

.pg-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgb(var(--text-body));
}

.pg-enterprise .pg-waitlist { margin-top: 56px; max-width: 640px; }

/* ---------- Founder section (replaces the original testimonials) ---------- */

.pg-founder-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 760px;
  margin: 48px auto 0;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgb(var(--card-border));
  background: rgb(var(--card-bg));
  box-shadow: 0 8px 28px rgba(37, 37, 34, 0.04);
  text-align: left;
}

.pg-founder-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: rgb(var(--landing-brand-light));
  border: 1px solid rgb(var(--card-border));
}

.pg-founder-name {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgb(var(--text-heading));
}

.pg-founder-role {
  margin: 4px 0 12px;
  font-size: 14px;
  color: rgb(var(--text-body));
}

.pg-founder-quote {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgb(var(--text-body));
}

.pg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.pg-badges li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(var(--tag-bg));
  color: rgb(var(--landing-text-active));
  font: 500 12px/1 GeistSans, 'GeistSans Fallback', -apple-system, system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.pg-founder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--text-heading));
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--card-border-hover));
  padding-bottom: 1px;
}

.pg-founder-link:hover { border-bottom-color: rgb(var(--text-heading)); }

@media (max-width: 560px) {
  .pg-founder-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pg-badges { justify-content: center; }
}


/* ---------- Pricing ---------- */
.pg-why { margin-top: 48px; }
.pg-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 24px auto 0;
  align-items: stretch;
}
.pg-plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgb(var(--card-border));
  background: rgb(var(--card-bg));
}
.pg-plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgb(var(--text-heading));
}
.pg-plan-price {
  margin: 12px 0 0;
  font-size: 15px;
  color: rgb(var(--text-body));
}
.pg-plan-price b {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: rgb(var(--text-heading));
  margin-right: 4px;
}
.pg-plan-for { margin: 8px 0 0; font-size: 14px; color: rgb(var(--text-muted)); }
.pg-plan ul {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}
.pg-plan li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(var(--text-body));
}
.pg-plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
}
.pg-plan-cta { width: 100%; text-decoration: none; }
.pg-plan-tag {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d97757;
}
/* The one dark card: the plan most companies start on. */
.pg-plan-featured { background: #1c1a17; border-color: #1c1a17; }
.pg-plan-featured h3,
.pg-plan-featured .pg-plan-price b { color: #fcfbf9; }
.pg-plan-featured .pg-plan-price,
.pg-plan-featured li { color: #d6d1c9; }
.pg-plan-featured .pg-plan-for { color: #a39d94; }
.pg-plan-featured .pg-button { background: #fcfbf9; border-color: #fcfbf9; color: #1c1a17; }
.pg-plan-featured .pg-button:hover { background: #ebe7e0; }
.pg-button-ghost { background: transparent; color: rgb(var(--text-heading)); border-color: rgb(var(--card-border)); }
.pg-button-ghost:hover { background: rgb(var(--landing-bg)); }
.pg-billing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 32px;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgb(var(--card-border));
}
.pg-billing p { margin: 0; font-size: 14px; line-height: 1.65; color: rgb(var(--text-body)); }
.pg-billing b { font-weight: 500; color: rgb(var(--text-heading)); }
@media (max-width: 560px) {
  .pg-plan { padding: 24px; }
  .pg-billing { padding: 20px; }
}

/* Four plans in a row on wide screens; Enterprise below as one line. */
@media (min-width: 1100px) { .pg-plans-4 { grid-template-columns: repeat(4, 1fr); } }
.pg-plans-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1200px; }
.pg-plans-4 .pg-plan { padding: 24px; }
.pg-plans-4 .pg-plan-price b { font-size: 36px; }
.pg-plan-yearly { margin: 4px 0 0; font-size: 13px; color: rgb(var(--text-muted)); }
.pg-plan-featured .pg-plan-yearly { color: #a39d94; }
.pg-plans-note {
  max-width: 1200px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  color: rgb(var(--text-body));
}
.pg-plan-enterprise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid rgb(var(--card-border));
  background: rgb(var(--card-bg));
}
.pg-plan-enterprise h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; color: rgb(var(--text-heading)); }
.pg-plan-enterprise p { margin: 0; font-size: 14px; line-height: 1.6; color: rgb(var(--text-body)); max-width: 760px; }
.pg-plan-enterprise .pg-button { flex: 0 0 auto; text-decoration: none; }
.pg-billing { max-width: 1200px; }
@media (max-width: 720px) {
  .pg-plan-enterprise { flex-direction: column; align-items: stretch; }
}


/* ---------- Illustrations (Eden series) in the sections without colour ---------- */
.pg-art-team {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 40px auto 0;
}
.pg-card-art { position: relative; padding-top: 20px; }
.pg-art-agent {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 0 8px -6px;
}
.pg-art-banner {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: clamp(180px, 28vw, 340px);
  object-fit: cover;
  object-position: center 88%;
  margin: 0 auto 56px;
  border-radius: 24px;
  border: 1px solid rgb(var(--card-border));
}
.pg-art-apple {
  float: right;
  width: 64px;
  height: 64px;
  margin: -8px -4px 0 12px;
}
@media (max-width: 560px) {
  .pg-art-agent { width: 80px; height: 80px; }
  .pg-art-banner { margin-bottom: 40px; border-radius: 18px; }
  .pg-art-apple { width: 52px; height: 52px; }
}

.pg-founder-card { position: relative; }
.pg-art-dev {
  position: absolute;
  right: -96px;
  bottom: -8px;
  width: 150px;
  height: auto;
  pointer-events: none;
}
@media (max-width: 1180px) { .pg-art-dev { display: none; } }


/* ---------- Motion below the fold, as in the hero ---------- */
.pg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--pg-delay, 0ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--pg-delay, 0ms);
}
.pg-reveal.is-in { opacity: 1; transform: none; }
.pg-reveal-art {
  filter: blur(10px);
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.pg-reveal-art.is-in { filter: none; transform: translateY(var(--pg-drift, 0px)); }
.pg-art-team.is-in, .pg-art-banner.is-in { transition-property: opacity, filter; }
/* The agents on the cards arrive a beat after their card, in focus, like the hero figures. */
.pg-reveal-art-pop {
  filter: blur(6px);
  transform: translateX(-12px);
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--pg-delay, 0ms) + 200ms),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--pg-delay, 0ms) + 200ms);
}
.pg-card.is-in .pg-reveal-art-pop { filter: none; transform: none; }
.pg-plan-featured .pg-button.pg-plan-cta { animation: none; }
.pg-plan-featured.is-in .pg-button.pg-plan-cta {
  animation: pg-spark 0.9s ease-out 0.5s 1 both;
}
@keyframes pg-spark {
  35% { box-shadow: 0 0 0 1px rgba(255, 226, 173, 0.5), 0 0 16px 3px rgba(255, 201, 102, 0.4), 0 0 60px 20px rgba(255, 224, 163, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(255, 226, 173, 0), 0 0 0 0 rgba(255, 201, 102, 0), 0 0 0 0 rgba(255, 224, 163, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-reveal, .pg-reveal-art, .pg-reveal-art-pop { opacity: 1; filter: none; transform: none; transition: none; }
}

/* The original header shows an App Store link on phones; Pangea has no app in the
   store yet, and the header already carries "Get early access". */
header a[href*="apps.apple.com"],
header a[href="#waitlist"]:not(.pg-header-cta) { display: none !important; }
