html:has(#plStart) { scroll-behavior: smooth; }

.pl-page { background: var(--page-bg); }

/* ================= Hero ================= */
.plx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, #0b1e8f 55%, #131e6b 100%);
  padding: 54px 0 70px;
}
.plx-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(245, 185, 66, .14) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(59, 130, 196, .18) 0%, transparent 45%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0px, rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.plx-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.plx-hero-content { max-width: 640px; }

.plx-crumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}
.plx-crumb a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .92); }
.plx-crumb a:hover { color: var(--gold); }
.plx-crumb .pbc-sep { color: rgba(255, 255, 255, .35); }
.plx-crumb .pbc-current { color: var(--gold); }

.plx-eyebrow {
  display: inline-block;
  background: rgba(245, 185, 66, .14);
  border: 1px solid rgba(245, 185, 66, .4);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.plx-hero-content h1 {
  color: white;
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.plx-hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.plx-hero-sub {
  color: #d5dafa;
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 28px;
}

.plx-hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}
.plx-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid rgba(245, 185, 66, .35);
}
.plx-hero-stat:first-child { padding-left: 0; border-left: none; }
.plx-hero-stat strong {
  font-size: 24px;
  font-weight: 800;
  color: white;
}
.plx-hero-stat span {
  font-size: 12px;
  color: #aab2e0;
  font-weight: 600;
}

.plx-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Trust badge row (replaces the old featured-pool preview card — nothing about a
   specific pool is shown publicly anymore, so this hero is text/trust-only) ---- */
.plx-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.plx-trust-row span {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* ================= Shared progress bar ================= */
.pl-progress-track {
  height: 10px;
  border-radius: 8px;
  background: var(--bg-tint);
  overflow: hidden;
}
.pl-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 100%);
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.pl-progress-fill.is-full { background: linear-gradient(90deg, var(--green) 0%, #05a44a 100%); }

/* ================= Shared section head ================= */
.pl-section-head { text-align: center; max-width: 560px; margin: 0 auto 34px; }
.pl-kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.pl-section-head h2 { font-size: 26px; margin: 0; color: var(--navy-text); }

/* ================= How it works ================= */
.pl-process { background: white; padding: 68px 0; }
.pl-process-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pl-step { flex: 1; min-width: 0; text-align: center; }
.pl-step-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--page-bg);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 24px rgba(11, 21, 80, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.pl-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--navy);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-step h3 { font-size: 15px; margin: 0 0 8px; color: var(--navy-text); }
.pl-step p { font-size: 12.5px; line-height: 1.65; color: var(--text-muted); margin: 0; padding: 0 6px; }
.pl-step-connector {
  color: var(--gold-dark);
  font-size: 22px;
  padding-top: 26px;
  flex-shrink: 0;
  opacity: .6;
}

/* ================= Start a Pool ================= */
.pl-start { padding: 70px 0; }
.pl-start-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.pl-start-text .pl-section-head { text-align: left; margin: 0 0 16px; max-width: none; }
.pl-start-text h2 { font-size: 26px; margin: 0 0 14px; color: var(--navy-text); }
.pl-start-text > p { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin: 0 0 22px; }
.pl-start-points { list-style: none; margin: 0; padding: 0; }
.pl-start-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--navy-text);
  font-weight: 500;
  margin-bottom: 14px;
}
.pl-point-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 18%, white);
  font-size: 15px;
}

.pl-form-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 30px 32px 26px;
  box-shadow: var(--card-shadow);
}
.pl-form-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--green) 14%, white);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.pl-form-card h2 { font-size: 21px; margin: 0 0 18px; color: var(--navy-text); }

.pl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.pl-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-text);
}
.pl-req { color: var(--red); }

.pl-field input,
.pl-field select,
.pl-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--navy-text);
  background: var(--page-bg);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pl-field textarea { resize: vertical; min-height: 44px; }
.pl-field input:focus,
.pl-field select:focus,
.pl-field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .16);
  background: white;
}

.pl-estimate {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-tint);
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0 0 14px;
}
.pl-estimate strong { color: var(--navy-text); }

.pl-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 13px 20px;
  background: linear-gradient(120deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--gold-text);
  font-size: 14.5px;
  box-shadow: 0 10px 22px rgba(212, 160, 23, .38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pl-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(212, 160, 23, .45);
}
.pl-submit-ico { font-size: 15px; }

.pl-form-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.pl-error {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 600;
  margin: -6px 0 14px;
}

/* ================= Modals ================= */
.pl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 15, 60, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.pl-overlay.show { opacity: 1; visibility: visible; }
.pl-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(9, 15, 60, .35);
  text-align: center;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}
.pl-overlay.show .pl-modal { transform: translateY(0) scale(1); opacity: 1; }

.pl-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--navy-text);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
  z-index: 1;
}
.pl-close:hover { background: var(--border); transform: rotate(90deg); }

.pl-modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--navy) 0%, #0b1e8f 45%, var(--gold-dark) 100%);
  box-shadow: 0 10px 26px rgba(212, 160, 23, .35);
}
.pl-modal h2 { margin: 0 0 8px; font-size: 19px; color: var(--navy-text); }
.pl-modal > p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.pl-privacy-note {
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.pl-privacy-note strong { color: var(--navy-text); }

.pl-done { width: 100%; justify-content: center; background: var(--navy); }
.pl-secondary-btn { width: 100%; justify-content: center; margin-top: 10px; }

/* ---- 2-step join modal ---- */
.pl-join-modal { max-width: 480px; }

.pl-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
}
.pl-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: background .25s ease, transform .25s ease;
}
.pl-step-dot.active { background: var(--gold-dark); transform: scale(1.15); }
.pl-step-dot.done { background: var(--green); transform: scale(1); }
.pl-step-line { width: 32px; height: 2px; background: var(--border); border-radius: 2px; }

.pl-steps-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.pl-view-lookup, .pl-view-claim { animation: plViewIn .35s ease; }
@keyframes plViewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pl-code-lock {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: color-mix(in srgb, var(--navy) 8%, white);
}

.pl-code-input {
  width: 100%;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--navy-text);
  text-transform: uppercase;
}
.pl-code-input::placeholder { letter-spacing: normal; font-weight: 500; opacity: .5; }

.pl-view-claim { display: none; }
.pl-modal.pl-show-claim .pl-view-lookup { display: none; }
.pl-modal.pl-show-claim .pl-view-claim { display: block; }

.pl-claim-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: var(--bg-tint);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.pl-claim-summary-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pl-claim-badge {
  font-size: 28px;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}
.pl-claim-summary strong { display: block; font-size: 15px; color: var(--navy-text); }
.pl-claim-summary small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.pl-claim-rate {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pl-claim-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 10px 0 20px;
}
.pl-claim-stats-row strong { display: block; color: var(--navy-text); font-size: 15px; }

.pl-estimate-inline {
  margin: 0;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--bg-tint);
  color: var(--navy-text);
  font-weight: 700;
  font-size: 14px;
}

.pl-claim-filled { padding-top: 4px; }
.pl-claim-filled p { margin-bottom: 20px; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .plx-hero-content h1 { font-size: 32px; }
  .pl-start-inner { grid-template-columns: 1fr; gap: 36px; }
  .pl-start-text .pl-section-head, .pl-start-text h2, .pl-start-text > p { text-align: center; }
  .pl-start-points li { justify-content: center; }
}
@media (max-width: 720px) {
  .plx-hero-content h1 { font-size: 30px; }
  .pl-process-row { flex-direction: column; gap: 24px; }
  .pl-step-connector { display: none; }
  .plx-hero-stats { gap: 18px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .pl-row { grid-template-columns: 1fr; }
  .pl-form-card { padding: 24px 22px 22px; }
}
