:root {
  --guide-dark: #0d261d;
  --guide-dark-2: #17372b;
  --guide-neon: #b9ff3d;
}

.beginner-guide-page {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

.beginner-hero {
  position: relative;
  padding: 142px 24px 84px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(77, 157, 238, 0.35), transparent 32%),
    linear-gradient(135deg, #071627, #123b64);
}

.beginner-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.beginner-hero__inner,
.beginner-section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.beginner-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 64px;
  align-items: center;
}

.guide-pill,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-pill,
.section-kicker--bright {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f3154;
  background: #cde2fc;
}

.beginner-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.beginner-hero__lead {
  max-width: 680px;
  margin: 28px 0 24px;
  color: #e2effc;
  font-size: 1.18rem;
  line-height: 1.65;
}

.guide-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(4, 28, 56, 0.2);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.guide-button:hover:not(:disabled) {
  background: var(--accent-strong);
  box-shadow: 0 15px 32px rgba(4, 28, 56, 0.26);
  transform: translateY(-1px);
}

.guide-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.guide-button:focus-visible,
.guide-dialog__close:focus-visible,
.guide-dialog input:focus-visible {
  outline: 3px solid #f6c95f;
  outline-offset: 3px;
}

.beginner-hero__note {
  margin: 14px 0 0;
  color: #c6d8e9;
  font-size: 0.9rem;
}

.beginner-hero__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* This preview intentionally keeps the PDF's own visual identity. */
.guide-mockup {
  min-height: 520px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(145deg, var(--guide-dark-2), #0a2018);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
}

.guide-mockup__brand {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-mockup__brand span {
  display: inline-grid;
  width: 26px;
  height: 18px;
  margin-left: 5px;
  place-items: center;
  border-radius: 5px;
  color: var(--guide-dark);
  background: var(--guide-neon);
}

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

.guide-mockup h2 {
  margin: 0;
  color: var(--white);
  font-size: 3.2rem;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.guide-mockup > strong {
  display: block;
  max-width: 300px;
  margin-top: 22px;
  color: #b9c7c0;
  line-height: 1.5;
}

.guide-mockup__steps {
  display: flex;
  margin-top: 62px;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.guide-mockup__steps span {
  padding: 9px;
  border-radius: 6px;
  background: #244839;
}

.guide-mockup__steps i {
  width: 18px;
  height: 2px;
  background: var(--guide-neon);
}

.beginner-section {
  padding: 82px 24px;
}

.beginner-section--cream {
  background: var(--white);
}

.beginner-section--lavender {
  background: var(--accent-soft);
}

.beginner-section--dark {
  color: var(--white);
  background: linear-gradient(135deg, #0b2138, #174f79);
}

.beginner-section--final {
  color: var(--white);
  background: linear-gradient(135deg, #123150, var(--accent));
}

.beginner-section h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.beginner-section--dark h2,
.beginner-section--final h2 {
  color: var(--white);
}

.section-intro,
.prompt-preview > div > p:not(.section-kicker),
.guide-contents > div > p:not(.section-kicker),
.final-guide-cta > p:not(.section-kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.beginner-section--dark .prompt-preview > div > p:not(.section-kicker),
.beginner-section--final .final-guide-cta > p:not(.section-kicker) {
  color: #dceafa;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.tip-grid article {
  grid-column: span 2;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(8, 27, 49, 0.06);
}

.tip-grid article:nth-child(4),
.tip-grid article:nth-child(5) {
  grid-column: span 3;
}

.tip-grid span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.tip-grid h3 {
  margin: 28px 0 10px;
  font-size: 1.17rem;
}

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

.prompt-preview,
.guide-contents {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: center;
}

.prompt-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 54px rgba(3, 20, 37, 0.2);
}

.prompt-card > span {
  color: #cde2fc;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-card p {
  margin: 40px 0 0;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
}

.prompt-card mark {
  color: #b9dcff;
  background: transparent;
}

.guide-contents ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-contents li {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 58px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid #cbd9e9;
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.guide-contents li span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.faq-guide-heading {
  max-width: 760px;
}

.faq-guide-heading > p:not(.section-kicker) {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-guide-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.faq-guide-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(8, 27, 49, 0.06);
}

.faq-guide-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 22px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
}

.faq-guide-item summary::-webkit-details-marker {
  display: none;
}

.faq-guide-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.55rem;
  line-height: 1;
}

.faq-guide-item[open] summary::after {
  content: "−";
}

.faq-guide-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.68;
}

.final-guide-cta {
  max-width: 800px;
  text-align: center;
}

.final-guide-cta .section-kicker,
.final-guide-cta h2 {
  margin-inline: auto;
}

.final-guide-cta > p {
  margin: 24px auto;
}

.final-guide-cta .guide-button {
  color: var(--accent-strong);
  background: var(--white);
}

.final-guide-cta .guide-button:hover:not(:disabled) {
  color: #103e73;
  background: #eef6ff;
}

.final-guide-cta small {
  display: block;
  margin-top: 18px;
  color: #dceafa;
}

.guide-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(5, 18, 36, 0.36);
}

.guide-dialog::backdrop {
  background: rgba(5, 18, 36, 0.78);
  backdrop-filter: blur(3px);
}

.guide-dialog h2 {
  margin: 0;
  font-size: 2rem;
}

.guide-dialog > p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.guide-dialog__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.guide-dialog form {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.guide-dialog label {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-dialog input {
  min-height: 50px;
  border: 1px solid #aebfd0;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.guide-dialog .guide-button {
  width: 100%;
  margin-top: 8px;
}

.field-error {
  min-height: 18px;
  color: #a33a1f;
  font-size: 0.84rem;
}

.form-feedback {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beginner-guide-page footer {
  padding: 28px 24px;
  color: #c7d5e3;
  background: #071627;
}

.beginner-guide-page footer .section__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.beginner-guide-page footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 760px) {
  .beginner-hero {
    padding: 118px 20px 62px;
  }

  .beginner-hero__inner,
  .prompt-preview,
  .guide-contents {
    grid-template-columns: 1fr;
  }

  .beginner-hero__inner {
    gap: 38px;
  }

  .beginner-hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.65rem);
  }

  .beginner-hero__lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .guide-button {
    width: 100%;
  }

  .guide-mockup {
    min-height: 450px;
    transform: none;
  }

  .tip-grid {
    grid-template-columns: 1fr;
  }

  .tip-grid article,
  .tip-grid article:nth-child(4),
  .tip-grid article:nth-child(5) {
    grid-column: span 1;
    min-height: 0;
  }

  .beginner-section {
    padding: 64px 20px;
  }

  .guide-dialog {
    padding: 30px 22px;
  }

  .guide-contents li {
    grid-template-columns: 42px 1fr;
  }

  .faq-guide-item summary {
    padding: 19px 18px;
  }

  .faq-guide-item p {
    padding: 0 18px 20px;
  }

  .beginner-guide-page footer .section__inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-button {
    transition: none;
  }
}
