@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --pg-paper: #f6f3ec;
  --pg-paper-strong: rgba(253, 251, 246, 0.92);
  --pg-paper-soft: rgba(248, 244, 236, 0.72);
  --pg-ink: #181c1a;
  --pg-smoke: #5d645f;
  --pg-line: rgba(24, 28, 26, 0.11);
  --pg-line-strong: rgba(24, 28, 26, 0.18);
  --pg-shadow: 0 22px 56px rgba(18, 19, 17, 0.09);
  --pg-shadow-soft: 0 10px 28px rgba(18, 19, 17, 0.05);
  --pg-moss: #59745b;
  --pg-moss-soft: rgba(89, 116, 91, 0.12);
  --pg-amber: #98652a;
  --pg-amber-soft: rgba(152, 101, 42, 0.12);
  --pg-rust: #a45143;
  --pg-rust-soft: rgba(164, 81, 67, 0.12);
  --pg-ocean: #536d84;
  --pg-ocean-soft: rgba(83, 109, 132, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body.pg-body {
  margin: 0;
  color: var(--pg-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(213, 198, 165, 0.14), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(198, 204, 195, 0.12), transparent 30%),
    linear-gradient(180deg, #fcfbf7 0%, #f3efe6 100%);
  min-height: 100vh;
}

body.pg-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 83px,
      rgba(24, 28, 26, 0.012) 83px,
      rgba(24, 28, 26, 0.012) 84px
    );
  opacity: 0.4;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.pg-masthead,
.pg-shell {
  width: min(1240px, calc(100vw - 44px));
  margin: 0 auto;
}

.pg-masthead {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  margin-top: 12px;
  background: rgba(250, 247, 240, 0.92);
  border: 1px solid rgba(24, 28, 26, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--pg-shadow-soft);
}

.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.pg-brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.pg-brand-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.pg-brand-word,
.pg-nav a,
.pg-kicker,
.pg-section-label,
.pg-panel-kicker,
.pg-stamp,
.pg-outcome-stamp,
.pg-step-label,
.pg-step-kicker,
.pg-support-label,
.pg-system-note,
.pg-indexed-label {
  font-family: "Arial Narrow", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pg-brand-word {
  font-size: 1.05rem;
  font-weight: 700;
}

.pg-brand-sub {
  color: var(--pg-smoke);
  font-size: 0.95rem;
}

.pg-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pg-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--pg-smoke);
  transition: color 140ms ease, background 140ms ease;
}

.pg-nav a:hover,
.pg-nav a:focus-visible {
  color: var(--pg-ink);
  background: rgba(24, 28, 26, 0.06);
  outline: none;
}

.pg-shell {
  padding: 72px 0 72px;
}

.pg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.88fr);
  gap: 28px;
  align-items: end;
  padding: 26px 0 48px;
  border-bottom: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-hero-copy {
  max-width: 44rem;
}

.pg-kicker {
  margin: 0 0 14px;
  color: var(--pg-smoke);
  font-size: 0.72rem;
  font-weight: 700;
}

.pg-hero h1 {
  margin: 0;
  max-width: 8ch;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: clamp(3.7rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.pg-lede {
  max-width: 31rem;
  margin: 24px 0 0;
  color: var(--pg-smoke);
  font-size: 1.24rem;
  line-height: 1.65;
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--pg-ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.pg-button:hover,
.pg-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--pg-line-strong);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(18, 19, 17, 0.08);
  outline: none;
}

.pg-button--primary,
.pg-button--dark {
  background: #1d211f;
  border-color: rgba(0, 0, 0, 0.14);
  color: #fbf8f1;
}

.pg-button--primary:hover,
.pg-button--primary:focus-visible,
.pg-button--dark:hover,
.pg-button--dark:focus-visible {
  background: #141816;
}

.pg-brief {
  position: relative;
  padding: 24px 24px 22px;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(248, 243, 234, 0.68));
  border: 1px solid rgba(24, 28, 26, 0.1);
  border-radius: 30px;
  box-shadow: var(--pg-shadow-soft);
  overflow: hidden;
}

.pg-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(89, 116, 91, 0.09), transparent 38%),
    linear-gradient(180deg, transparent, rgba(24, 28, 26, 0.02));
  pointer-events: none;
}

.pg-brief > * {
  position: relative;
  z-index: 1;
}

.pg-brief-kicker {
  margin: 0;
  color: var(--pg-smoke);
  font-size: 0.74rem;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pg-brief h2 {
  margin: 12px 0 0;
  max-width: 14ch;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.pg-brief-rows {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-brief-rows p {
  margin: 0;
  color: #434944;
  line-height: 1.55;
}

.pg-brief-rows span {
  display: block;
  margin-bottom: 4px;
  color: var(--pg-smoke);
  font-size: 0.7rem;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pg-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: var(--pg-smoke);
  font-size: 0.72rem;
  font-weight: 700;
}

.pg-section-label::before,
.pg-section-label::after {
  content: "";
  height: 1px;
  background: rgba(24, 28, 26, 0.08);
}

.pg-section-label::before {
  width: 16px;
}

.pg-section-label::after {
  flex: 1;
}

.pg-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(20rem, 0.9fr);
  gap: 20px;
  align-items: start;
}

.pg-panel,
.pg-support-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(247, 242, 233, 0.82));
  border: 1px solid rgba(24, 28, 26, 0.1);
  border-radius: 30px;
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.pg-panel::before,
.pg-support-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at top right, rgba(24, 28, 26, 0.024), transparent 42%);
  pointer-events: none;
}

.pg-panel > *,
.pg-support-card > * {
  position: relative;
  z-index: 1;
}

.pg-panel {
  padding: 24px;
}

.pg-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.pg-panel-kicker {
  margin: 0 0 6px;
  color: var(--pg-smoke);
  font-size: 0.68rem;
  font-weight: 700;
}

.pg-panel-head h2 {
  margin: 0;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: 1.86rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.pg-stamp,
.pg-outcome-stamp,
.pg-step-seal,
.pg-system-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(24, 28, 26, 0.1);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.pg-stamp,
.pg-system-note {
  background: rgba(255, 255, 255, 0.56);
  color: var(--pg-smoke);
}

.pg-outcome-stamp--moss,
.pg-step-seal--moss {
  background: var(--pg-moss-soft);
  color: var(--pg-moss);
}

.pg-outcome-stamp--amber,
.pg-step-seal--amber {
  background: var(--pg-amber-soft);
  color: var(--pg-amber);
}

.pg-outcome-stamp--rust,
.pg-step-seal--rust {
  background: var(--pg-rust-soft);
  color: var(--pg-rust);
}

.pg-outcome-stamp--ocean,
.pg-step-seal--ocean {
  background: var(--pg-ocean-soft);
  color: var(--pg-ocean);
}

.pg-scenario-rail {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pg-scenario {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(24, 28, 26, 0.08);
  border-radius: 22px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.pg-scenario:hover,
.pg-scenario:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(24, 28, 26, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(18, 19, 17, 0.06);
  outline: none;
}

.pg-scenario.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(24, 28, 26, 0.18);
  box-shadow: inset 0 0 0 1px rgba(24, 28, 26, 0.04), 0 14px 30px rgba(18, 19, 17, 0.06);
}

.pg-scenario-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(24, 28, 26, 0.05);
  color: var(--pg-smoke);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.pg-scenario.is-active .pg-scenario-index {
  background: rgba(24, 28, 26, 0.1);
  color: var(--pg-ink);
}

.pg-scenario-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.pg-scenario-copy strong {
  font-size: 1.08rem;
  font-family: "Arial Narrow", "Inter", sans-serif;
  letter-spacing: 0.01em;
}

.pg-scenario-copy small {
  color: var(--pg-smoke);
  font-size: 0.92rem;
}

.pg-story {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-story-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.pg-story-label {
  margin: 0 0 6px;
  color: var(--pg-smoke);
  font-size: 0.72rem;
  font-family: "Arial Narrow", "Inter", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pg-story h3 {
  margin: 0;
  max-width: 16ch;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: 2.2rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.pg-story-description {
  max-width: 44rem;
  margin: 18px 0 0;
  color: #4d534e;
  font-size: 1.04rem;
  line-height: 1.72;
}

.pg-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.pg-signal {
  padding: 14px 14px 13px;
  border: 1px solid rgba(24, 28, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.pg-signal p {
  margin: 0;
}

.pg-signal .pg-support-label {
  display: block;
  margin-bottom: 6px;
  color: var(--pg-smoke);
  font-size: 0.68rem;
  font-weight: 700;
}

.pg-signal strong {
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: 1rem;
}

.pg-code {
  margin: 20px 0 0;
  padding: 20px;
  min-height: 21rem;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(20, 23, 22, 0.98), rgba(17, 19, 18, 0.98));
  color: #f0eee7;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  line-height: 1.68;
  white-space: pre-wrap;
}

.pg-step-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.pg-step-label {
  color: var(--pg-smoke);
  font-size: 0.68rem;
  font-weight: 700;
}

.pg-walkthrough-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(24, 28, 26, 0.08);
  border-bottom: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-walkthrough-meta p {
  margin: 0;
}

.pg-walkthrough-meta p:first-child {
  color: var(--pg-ink);
  font-size: 0.96rem;
  font-weight: 600;
}

.pg-walkthrough-meta p:last-child {
  color: var(--pg-smoke);
  line-height: 1.6;
}

.pg-timeline {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.pg-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 18px 18px 0;
  border-top: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-step:first-child {
  border-top: 0;
}

.pg-step-index {
  position: relative;
  width: 34px;
  padding-top: 2px;
}

.pg-step-index::before {
  content: attr(data-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(24, 28, 26, 0.12);
  background: rgba(255, 255, 255, 0.58);
  color: var(--pg-smoke);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.pg-step.is-current .pg-step-index::before {
  background: rgba(24, 28, 26, 0.9);
  border-color: rgba(24, 28, 26, 0.9);
  color: #faf7f0;
  box-shadow: 0 10px 20px rgba(18, 19, 17, 0.14);
}

.pg-step-body {
  padding: 2px 18px 18px;
  border-left: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-step:last-child .pg-step-body {
  padding-bottom: 0;
}

.pg-step-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.pg-step-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--pg-smoke);
  font-size: 0.66rem;
  font-weight: 700;
}

.pg-step h3 {
  margin: 0;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: 1.52rem;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.pg-step p {
  margin: 10px 0 0;
  color: #4d534e;
  line-height: 1.62;
}

.pg-step.is-current .pg-step-body {
  border-left-color: rgba(89, 116, 91, 0.42);
}

.pg-step.is-complete .pg-step-body {
  border-left-color: rgba(24, 28, 26, 0.14);
}

.pg-step.is-upcoming {
  opacity: 0.74;
}

.pg-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pg-support-card {
  padding: 22px;
}

.pg-support-card h3 {
  margin: 0;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pg-support-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pg-support-item {
  padding: 14px 0 0;
  border-top: 1px solid rgba(24, 28, 26, 0.08);
}

.pg-support-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.pg-support-label {
  display: block;
  margin-bottom: 5px;
  color: var(--pg-smoke);
  font-size: 0.66rem;
  font-weight: 700;
}

.pg-support-item strong {
  display: block;
  font-family: "Arial Narrow", "Inter", sans-serif;
  font-size: 1.08rem;
  line-height: 1.05;
}

.pg-support-item p {
  margin: 6px 0 0;
  color: #505652;
  line-height: 1.55;
}

.pg-actions--support {
  margin-top: 4px;
}

@media (max-width: 1120px) {
  .pg-hero,
  .pg-stage {
    grid-template-columns: 1fr;
  }

  .pg-hero-copy,
  .pg-lede {
    max-width: none;
  }

  .pg-hero h1 {
    max-width: 10ch;
  }

  .pg-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .pg-masthead,
  .pg-shell {
    width: min(calc(100vw - 28px), 100%);
  }

  .pg-masthead {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pg-nav {
    width: 100%;
    margin-left: 0;
  }

  .pg-hero {
    padding-top: 14px;
  }

  .pg-hero h1 {
    font-size: clamp(3rem, 12vw, 4.6rem);
  }

  .pg-panel,
  .pg-support-card {
    padding: 20px;
    border-radius: 24px;
  }

  .pg-story-head,
  .pg-panel-head,
  .pg-step-head {
    flex-direction: column;
  }

  .pg-step-controls {
    align-items: flex-start;
  }

  .pg-signal-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pg-shell {
    padding-top: 48px;
  }

  .pg-actions {
    flex-direction: column;
  }

  .pg-button {
    width: 100%;
  }

  .pg-scenario {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pg-scenario-index {
    width: 32px;
    height: 32px;
  }

  .pg-code {
    min-height: 18rem;
    font-size: 0.84rem;
  }
}
