.prompt-pack-page {
  --pack-dark: #0d261d;
  --pack-dark-2: #17372b;
  --pack-neon: #b9ff3d;
  --pack-coral: #ff826f;
  background: #f7f3e9;
}

.prompt-pack-page .guide-button {
  text-decoration: none;
}

.prompt-pack-hero h1 {
  max-width: 740px;
  font-size: clamp(3rem, 6.35vw, 4.9rem);
}

.prompt-pack-cover {
  min-height: 520px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(rgba(185, 255, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 255, 61, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, var(--pack-dark-2), #081b14);
  background-size: 36px 36px, 36px 36px, auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
}

.prompt-pack-cover .guide-mockup__brand span {
  color: var(--pack-dark);
  background: var(--pack-neon);
}

.prompt-pack-cover > p {
  display: inline-flex;
  margin: 68px 0 20px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--pack-dark);
  background: var(--pack-neon);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-pack-cover h2 {
  margin: 0;
  color: #fff;
  font-size: 3.35rem;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.prompt-pack-cover > strong {
  display: block;
  max-width: 330px;
  margin-top: 22px;
  color: #bed1c8;
  line-height: 1.55;
}

.prompt-pack-cover__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 62px;
}

.prompt-pack-cover__cards span {
  padding: 16px 8px;
  border: 1px solid rgba(185, 255, 61, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pack-neon);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.prompt-loop {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  gap: 14px;
  margin-top: 44px;
  align-items: center;
}

.prompt-loop article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8, 27, 49, 0.07);
}

.prompt-loop article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.prompt-loop h3 {
  margin: 30px 0 10px;
  font-size: 1.45rem;
}

.prompt-loop p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.prompt-loop > i {
  position: relative;
  height: 2px;
  background: var(--accent);
}

.prompt-loop > i::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.prompt-pack-how {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: start;
}

.prompt-pack-how ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-pack-how li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid #cbd9e9;
  border-radius: 10px;
  background: #fff;
}

.prompt-pack-how li > span,
.prompt-index li > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.prompt-pack-how strong {
  display: block;
  margin-bottom: 4px;
}

.prompt-pack-how p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.prompt-library {
  background: #fff;
}

.prompt-library__heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.prompt-library__heading > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.starter-prompt {
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid #b8c8d8;
  border-radius: 14px;
  background: #fbfaf5;
  box-shadow: 0 18px 42px rgba(8, 27, 49, 0.08);
  scroll-margin-top: 110px;
}

.starter-prompt header {
  padding: 28px 30px 24px;
}

.starter-prompt header > span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0f3154;
  background: #d8ebff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.starter-prompt h3 {
  margin: 16px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
}

.starter-prompt header p,
.starter-prompt footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.starter-prompt__body {
  position: relative;
  padding: 28px;
  color: #effff6;
  background: var(--pack-dark);
}

.starter-prompt__body button {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  border: 1px solid rgba(185, 255, 61, 0.42);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--pack-dark);
  background: var(--pack-neon);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.starter-prompt pre {
  overflow-x: auto;
  margin: 42px 0 0;
  white-space: pre-wrap;
}

.starter-prompt code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.91rem;
  line-height: 1.7;
}

.starter-prompt footer {
  padding: 20px 30px 24px;
  border-top: 1px solid #d6dfdf;
  background: #eef6f2;
}

.starter-prompt footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pack-dark-2);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reading-gate {
  position: relative;
  z-index: 1;
  margin: 36px 0 4px;
  padding: 42px;
  border: 1px solid #b9cfea;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(80, 161, 241, 0.22), transparent 35%),
    linear-gradient(135deg, #edf6ff, #f7f3e9);
  box-shadow: 0 24px 60px rgba(8, 27, 49, 0.13);
  text-align: center;
}

.reading-gate::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -130px;
  right: 0;
  left: 0;
  height: 130px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.97));
  pointer-events: none;
}

.reading-gate .section-kicker {
  display: inline-flex;
}

.reading-gate h2 {
  margin-inline: auto;
}

.reading-gate > p:not(.section-kicker) {
  max-width: 720px;
  margin: 18px auto 28px;
  color: var(--muted);
  line-height: 1.65;
}

.reading-gate form {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
  align-items: start;
  text-align: left;
}

.reading-gate form > div:not(.honeypot-field) {
  display: grid;
  gap: 7px;
}

.reading-gate label {
  font-size: 0.84rem;
  font-weight: 800;
}

.reading-gate input {
  min-height: 54px;
  border: 1px solid #9fb4c9;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.reading-gate .guide-button {
  align-self: end;
  margin-bottom: 18px;
  white-space: nowrap;
}

.reading-gate .form-feedback {
  grid-column: 1 / -1;
}

.reading-gate > small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.unlocked-note {
  display: flex;
  margin: 34px 0 28px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #b4d6c4;
  border-radius: 10px;
  padding: 18px 22px;
  background: #eaf8f0;
}

.unlocked-note span {
  color: #145a36;
  font-weight: 900;
}

.unlocked-note p {
  margin: 0;
  color: #38614d;
}

.prompt-index,
.faq-pack {
  padding: 70px 0 24px;
}

.prompt-index ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.prompt-index li {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-height: 60px;
  align-items: center;
  border: 1px solid #cbd9e9;
  border-radius: 9px;
  padding: 10px 18px;
  background: #f8fbff;
  font-weight: 700;
}

.paid-next-step {
  margin: 70px 0 0;
  padding: 58px 34px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0b2138, #174f79);
  text-align: center;
}

.paid-next-step .section-kicker,
.paid-next-step h2 {
  margin-inline: auto;
}

.paid-next-step h2 {
  color: #fff;
}

.paid-next-step > p:not(.section-kicker) {
  max-width: 720px;
  margin: 22px auto 28px;
  color: #dceafa;
  line-height: 1.7;
}

.paid-next-step .guide-button {
  color: var(--accent-strong);
  background: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .prompt-loop {
    grid-template-columns: 1fr;
  }

  .prompt-loop > i {
    width: 2px;
    height: 28px;
    margin: 0 auto;
  }

  .prompt-loop > i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .prompt-pack-how {
    grid-template-columns: 1fr;
  }

  .reading-gate form {
    grid-template-columns: 1fr 1fr;
  }

  .reading-gate .guide-button {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .prompt-pack-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.55rem);
  }

  .prompt-pack-cover {
    min-height: 450px;
    transform: none;
  }

  .prompt-pack-cover h2 {
    font-size: 2.8rem;
  }

  .prompt-pack-cover__cards {
    margin-top: 46px;
  }

  .prompt-pack-how {
    gap: 34px;
  }

  .starter-prompt header,
  .starter-prompt footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .starter-prompt__body {
    padding: 22px 18px;
  }

  .starter-prompt__body button {
    position: static;
    width: 100%;
  }

  .starter-prompt pre {
    margin-top: 22px;
  }

  .starter-prompt code {
    font-size: 0.82rem;
  }

  .reading-gate {
    padding: 34px 20px;
  }

  .reading-gate form,
  .prompt-index ol {
    grid-template-columns: 1fr;
  }

  .reading-gate .guide-button {
    grid-column: auto;
  }

  .unlocked-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .paid-next-step {
    padding: 46px 20px;
  }
}
