/* The traveler-facing /chatgpt/ pages. Reuses the site's faces, tokens, shell,
   buttons and browser frame; everything here sits on the stage floor, so it
   follows Day/Night through --cream / --stage / --gold-text. */
.gpt-rule {
  --gpt-line: color-mix(in srgb, var(--cream) 16%, transparent);
  --gpt-soft: color-mix(in srgb, var(--cream) 72%, transparent);
}

/* The traveler exit is the page's one action, so it doesn't wait for scroll. */
.masthead .masthead__cta.gpt-cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  white-space: nowrap;
}

/* ---- Hero: the promise beside a real home page ---- */
.gpt-head {
  min-height: 0;
  align-items: center;
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

.gpt-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

.gpt-head h1 {
  font-size: clamp(2.5rem, 1.3rem + 3vw, 3.75rem);
  max-width: none;
}

/* "Mismo anfitrión." is the longest line in either language; keep it whole. */
.gpt-head h1:lang(es) {
  font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.25rem);
}

.gpt-head .lede {
  max-width: 40ch;
}

.gpt-proof {
  margin: 0;
  min-width: 0;
}

.gpt-proof figcaption {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gpt-soft);
}

.gpt-proof figcaption strong {
  font-weight: 600;
  color: var(--cream);
}

/* ---- Sections ---- */
.gpt-section {
  padding-block: clamp(3.5rem, 9vh, 6.5rem);
  border-top: 1px solid var(--gpt-line);
}

.gpt-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.gpt-section h2 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  line-height: 1.1;
  max-width: 16ch;
}

.gpt-copy {
  margin-top: 1.25rem;
  max-width: 44ch;
  color: var(--gpt-soft);
}

.gpt-copy a,
.gpt-fine a {
  color: var(--gold-text);
  text-underline-offset: 3px;
}

.gpt-section .btn {
  margin-top: 2rem;
}

/* ---- Try asking: the prompts are the content, so they get the display face ---- */
.gpt-asks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gpt-asks li {
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.3;
  text-wrap: balance;
}

.gpt-asks li + li {
  margin-top: 1rem;
}

/* ---- How it works ---- */
.gpt-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gpt-steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gpt-line);
}

.gpt-steps li:first-child {
  padding-top: 0;
}

.gpt-steps li > span {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--gold-text);
}

.gpt-steps h3 {
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.gpt-steps p {
  margin-top: 0.4rem;
  max-width: 46ch;
  color: var(--gpt-soft);
}

/* ---- Good to know: the limits, stated once ---- */
.gpt-limits {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 46ch;
}

.gpt-limits li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--gpt-line);
  color: var(--gpt-soft);
}

.gpt-limits strong {
  font-weight: 600;
  color: var(--cream);
}

/* ---- The small print: data, terms, help ---- */
.gpt-fine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.gpt-fine h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--gold-text);
}

.gpt-fine p {
  margin-top: 0.8rem;
  font-size: 0.9375rem;
  color: var(--gpt-soft);
}

.gpt-fine a {
  display: inline-block;
  padding-block: 0.15rem;
}

.gpt-colophon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 60rem) {
  .gpt-head {
    padding-top: 7rem;
  }

  .gpt-head__grid,
  .gpt-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .gpt-section h2 {
    max-width: 18ch;
  }

  .gpt-fine {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 32rem) {
  .gpt-head .btn,
  .gpt-section .btn {
    width: 100%;
    justify-content: center;
  }

  .gpt-asks li {
    padding-left: 1.1rem;
  }
}
