/* ================================================================
   QUALZY — Panel Page Styles
   All classes prefixed with `pn-` to avoid conflicts
   Page: features/panel.html
   ================================================================ */


/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.pn-hero {
  padding-top: 64px; /* nav height offset */
  background: var(--wh);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.pn-hd1 {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: var(--op);
  z-index: 0;
}

.pn-hd1::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: var(--om);
}

.pn-hd2 {
  position: absolute;
  bottom: 40px;
  left: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--op);
  z-index: 0;
}

.pn-hsvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero inner */
.pn-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--t-base);
}
.pn-back:hover { color: rgba(255,255,255,0.85); }

.pn-hi {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px 92px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pn-hi h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 900;
  color: var(--dk);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.pn-hi h1 em {
  font-style: italic;
  color: var(--o);
}

.pn-hsub {
  font-size: 18px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 36px;
}

.pn-hbtns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

/* Override .hst max-width for hero stat bar */
.pn-hi .hst {
  max-width: 640px;
  width: 100%;
}

/* Second stat number has two lines — reduce font for sub-label */
.pn-hi .hst .sn {
  line-height: 1.05;
}


/* ----------------------------------------------------------------
   PROBLEM SECTION
   ---------------------------------------------------------------- */
.pn-prob {
  background: var(--dk);
  padding: 96px 80px;
}

.pn-prob-hd {
  text-align: center;
  margin-bottom: 64px;
}

.pn-prob-hd .stit {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 44px);
}

.pn-prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.pn-pb {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 36px 44px;
  position: relative;
  transition: background var(--t-base);
}

.pn-pb:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pn-pb-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: rgba(250, 88, 2, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.pn-pb-ico {
  width: 40px;
  height: 40px;
  color: var(--o);
  margin-bottom: 20px;
}

.pn-pb-ico svg {
  width: 100%;
  height: 100%;
}

.pn-pb h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.pn-pb p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-weight: 300;
}


/* ----------------------------------------------------------------
   PARTICIPANT EXPERIENCE SECTION
   ---------------------------------------------------------------- */
.pn-portal-hd {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.pn-pxp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pn-pxp {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.pn-pxp:hover {
  border-color: rgba(250,88,2,.25);
  box-shadow: 0 4px 20px rgba(250,88,2,.07);
}

.pn-pxp-ico {
  width: 42px;
  height: 42px;
  background: var(--op);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--o);
  flex-shrink: 0;
}

.pn-pxp-ico svg {
  width: 20px;
  height: 20px;
}

.pn-pxp-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--dk);
  line-height: 1.2;
}

.pn-pxp-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
  margin: 0;
}


/* ----------------------------------------------------------------
   HOW IT WORKS — 3-step flow
   ---------------------------------------------------------------- */
.pn-how {
  background: var(--op);
  padding: 100px 80px;
}

.pn-how-hd {
  text-align: center;
  margin-bottom: 64px;
}

.pn-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.pn-step {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.pn-step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--o);
  line-height: 1;
  margin-bottom: 20px;
}

.pn-step-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 14px;
}

.pn-step-body p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

.pn-step-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pn-step-tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--o);
  background: var(--op);
  border: 1px solid rgba(250, 88, 2, 0.18);
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}

/* Arrow between steps */
.pn-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 0;
  color: rgba(250, 88, 2, 0.4);
}

.pn-step-arrow svg {
  width: 28px;
  height: 28px;
}


/* ----------------------------------------------------------------
   QUALZY PROTECT — dark featured section
   ---------------------------------------------------------------- */
.pn-protect {
  background: var(--dk);
  padding: 100px 80px;
}

.pn-protect-hd {
  text-align: center;
  margin-bottom: 64px;
}

.pn-protect-hd .stit em {
  color: var(--o);
  font-style: italic;
}

.pn-protect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.pn-pf {
  background: rgba(255, 255, 255, 0.03);
  padding: 36px 32px 40px;
  transition: background var(--t-base);
}

.pn-pf:hover {
  background: rgba(250, 88, 2, 0.06);
}

.pn-pf-ico {
  width: 36px;
  height: 36px;
  color: var(--o);
  margin-bottom: 18px;
}

.pn-pf-ico svg {
  width: 100%;
  height: 100%;
}

.pn-pf-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.pn-pf-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.7;
  font-weight: 300;
}

/* The quarantine tile gets a subtle orange tint to distinguish it */
.pn-pf-quarantine {
  background: rgba(250, 88, 2, 0.07);
  border-top: 1px solid rgba(250, 88, 2, 0.15);
}

.pn-protect-note {
  text-align: center;
}

.pn-protect-note span {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 100px;
  font-style: italic;
}


/* ----------------------------------------------------------------
   FULL FEATURE GRID
   ---------------------------------------------------------------- */
.pn-feat-hd {
  text-align: center;
  margin-bottom: 60px;
}

.pn-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pn-ft {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 30px 36px;
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.pn-ft:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(250, 88, 2, 0.25);
  transform: translateY(-3px);
}

.pn-ft-ico {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--o);
  margin-bottom: 18px;
}

.pn-ft-ico svg {
  width: 100%;
  height: 100%;
}

.pn-ft-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pn-ft-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
}


/* ----------------------------------------------------------------
   PANEL vs COMMUNITY EXPLAINER
   ---------------------------------------------------------------- */
.pn-compare {
  background: var(--op);
}

.pn-compare-hd {
  text-align: center;
}

.pn-comp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pn-comp-col {
  border-radius: 16px;
  overflow: hidden;
}

/* Panel column — white card */
.pn-comp-panel {
  background: #fff;
  border: 2px solid var(--rule);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Community column — orange-accent card */
.pn-comp-community {
  background: var(--dk);
  border: 2px solid rgba(250, 88, 2, 0.3);
}

.pn-comp-col-hd {
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.pn-comp-community .pn-comp-col-hd {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.pn-comp-col-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--dk);
  margin-bottom: 4px;
}

.pn-comp-community .pn-comp-col-label {
  color: var(--o);
}

.pn-comp-col-sub {
  font-size: 13px;
  color: var(--mu);
  font-weight: 400;
}

.pn-comp-community .pn-comp-col-sub {
  color: rgba(255, 255, 255, 0.45);
}

.pn-comp-list {
  list-style: none;
  padding: 24px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pn-comp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--rule);
}

.pn-comp-item:last-child {
  border-bottom: none;
}

.pn-comp-community .pn-comp-item {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}

.pn-ci-mark {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 1px;
}

.pn-ci-in .pn-ci-mark {
  color: var(--o);
  font-size: 14px;
}

.pn-ci-add .pn-ci-mark {
  color: var(--o);
  font-size: 16px;
}

.pn-comp-cta {
  padding: 28px 32px 32px;
}

/* Upgrade path note */
.pn-upgrade-note {
  margin-top: 36px;
}

.pn-upgrade-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(250, 88, 2, 0.08);
  border: 1px solid rgba(250, 88, 2, 0.2);
  border-radius: 12px;
  padding: 20px 28px;
}

.pn-upgrade-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--o);
  margin-top: 1px;
}

.pn-upgrade-ico svg {
  width: 100%;
  height: 100%;
}

.pn-upgrade-inner p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
}

.pn-upgrade-inner strong {
  color: var(--dk);
}


/* ================================================================
   RESPONSIVE — TABLET (max 900px)
   ================================================================ */
@media (max-width: 900px) {

  /* Hero */
  .pn-hi {
    padding: 56px 32px 72px;
  }

  /* Problem */
  .pn-prob {
    padding: 72px 24px;
  }

  .pn-prob-grid {
    grid-template-columns: 1fr;
  }

  /* Branded portal */
  .pn-portal-g {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pn-portal-mock {
    order: -1; /* mockup above text on tablet */
  }

  /* How it works */
  .pn-how {
    padding: 72px 24px;
  }

  .pn-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pn-step-arrow {
    padding: 0;
    transform: rotate(90deg);
    justify-content: flex-start;
    padding-left: 48px;
  }

  /* Protect */
  .pn-protect {
    padding: 72px 24px;
  }

  .pn-protect-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Participant experience cards */
  .pn-pxp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature grid */
  .pn-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Compare */
  .pn-compare {
    padding: 72px 24px;
  }

  .pn-comp-cols {
    grid-template-columns: 1fr;
  }

}


/* ================================================================
   RESPONSIVE — MOBILE (max 600px)
   ================================================================ */
@media (max-width: 600px) {

  .pn-pxp-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .pn-hi {
    padding: 48px 24px 64px;
  }

  .pn-hi h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .pn-hsub {
    font-size: 16px;
  }

  .pn-hbtns {
    flex-direction: column;
    width: 100%;
  }

  .pn-hbtns .bp,
  .pn-hbtns .bg {
    text-align: center;
    justify-content: center;
  }

  .pn-hi .hst {
    flex-direction: column;
  }

  .pn-hi .hst > div {
    border-right: none;
    border-bottom: 1.5px solid var(--rule);
  }

  .pn-hi .hst > div:last-child {
    border-bottom: none;
  }

  /* Problem */
  .pn-pb {
    padding: 32px 24px 36px;
  }

  .pn-pb-num {
    font-size: 48px;
  }

  /* Portal */
  .pad {
    padding: 72px 24px;
  }

  .pn-portal-list li {
    font-size: 14px;
  }

  /* How it works */
  .pn-step {
    padding: 28px 24px;
  }

  /* Protect */
  .pn-protect-grid {
    grid-template-columns: 1fr;
  }

  .pn-pf {
    padding: 28px 24px 32px;
  }

  /* Feature grid */
  .pn-feat-grid {
    grid-template-columns: 1fr;
  }

  .pn-ft {
    padding: 28px 24px 32px;
  }

  /* Compare */
  .pn-comp-col-hd,
  .pn-comp-list {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pn-comp-cta {
    padding: 20px 24px 24px;
  }

  .pn-upgrade-inner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
  }

}
