/* ===== Ergosona – Simple Pricing Page ===== */

.pricing-page {
  padding-top: 78px;
  min-height: calc(100vh - 120px);
}

.pricing-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 20px 184px;
}

.pricing-head {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(44, 200, 185, 0.42);
  background: rgba(44, 200, 185, 0.12);
  color: var(--primary-light);
  padding: 6px 12px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-head h1 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.pricing-subtitle {
  margin: 0 auto;
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    160deg,
    rgba(15, 29, 31, 0.98),
    rgba(18, 34, 37, 0.96)
  );
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.plan-card-featured {
  border-color: rgba(44, 200, 185, 0.5);
  background: linear-gradient(
    155deg,
    rgba(15, 29, 31, 0.98),
    rgba(44, 200, 185, 0.16) 70%,
    rgba(255, 142, 98, 0.22)
  );
}

.plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 11, 12, 0.85);
  color: #f8fafc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.plan-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-price {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.plan-card .btn {
  width: 100%;
}

.pricing-note {
  margin-top: 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.pricing-features {
  margin-top: 22px;
}

.pricing-features h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.2rem;
}

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

.feature-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  display: grid;
  gap: 5px;
}

.feature-item h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Dynamic island */
.offer-island {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(760px, calc(100% - 14px));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    140deg,
    rgba(9, 16, 18, 0.97),
    rgba(9, 16, 18, 0.93) 68%,
    rgba(44, 200, 185, 0.13)
  );
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(44, 200, 185, 0.28);
  padding: 12px 14px 10px;
  display: grid;
  gap: 8px;
  color: var(--text);
  z-index: 260;
  text-align: left;
}

.offer-island:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(44, 200, 185, 0.45),
    0 0 26px rgba(44, 200, 185, 0.26);
}

.offer-island.is-urgent {
  border-color: rgba(255, 142, 98, 0.82);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 142, 98, 0.58),
    0 0 26px rgba(255, 142, 98, 0.28);
}

.offer-island-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.offer-island-kicker {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.offer-island-seats {
  border-radius: 999px;
  background: rgba(255, 142, 98, 0.17);
  border: 1px solid rgba(255, 142, 98, 0.38);
  color: #ffe7dc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
}

.offer-island-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.offer-island-main strong {
  font-size: clamp(1.08rem, 3.6vw, 1.45rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.offer-island-countdown {
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.offer-island-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.offer-island-price {
  color: #f8fafc;
  font-size: 0.93rem;
  font-weight: 800;
}

.offer-island-price span {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-size: 0.84rem;
  margin-right: 6px;
}

.offer-island-action {
  border-radius: 999px;
  background: linear-gradient(135deg, #1a1629, #0f2030);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 13px;
}

.offer-island-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
}

.offer-island-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s linear;
}

/* Full-screen offer modal */
body.offer-modal-open {
  overflow: hidden;
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
}

.offer-modal.hidden {
  display: none;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 8, 0.84);
}

.offer-modal-panel {
  position: relative;
  width: min(560px, calc(100% - 20px));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(170deg, #101d20, #0a1315);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(44, 200, 185, 0.24);
  padding: 24px 18px 18px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  animation: offerPanelIn 0.24s var(--easing-snappy) both;
}

.offer-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 1.16rem;
  line-height: 1;
}

.offer-modal-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.offer-modal h2 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  line-height: 1.05;
}

.offer-modal-lead {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.offer-modal-meta {
  margin: -2px 0 0;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.offer-modal-price {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 11px 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.offer-price-old {
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.offer-price-new {
  font-size: 1.3rem;
  color: #f8fafc;
  font-weight: 900;
}

.offer-modal-plan {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-modal-plan div {
  display: grid;
  gap: 2px;
}

.offer-modal-plan span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.offer-modal-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.offer-modal-features li {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.offer-modal-cta {
  width: 100%;
}

.offer-modal-skip {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0;
}

/* Confirmation layer shown when user tries to close modal */
.offer-confirm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(3, 7, 8, 0.7);
}

.offer-confirm.hidden {
  display: none;
}

.offer-confirm-card {
  width: min(430px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0c1618;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.offer-confirm-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.offer-confirm-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.offer-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.has-offer-island .pricing-footer {
  padding-bottom: 150px;
}

@keyframes offerPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .pricing-shell {
    padding: 36px 12px 164px;
  }

  .pricing-head h1 {
    font-size: 1.78rem;
  }

  .pricing-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .offer-island {
    width: calc(100% - 10px);
    border-radius: 22px;
    gap: 7px;
    padding: 11px 10px 9px;
  }

  .offer-island-top,
  .offer-island-main,
  .offer-island-bottom {
    flex-wrap: wrap;
  }

  .offer-island-main strong,
  .offer-island-bottom,
  .offer-island-countdown {
    width: 100%;
  }

  .offer-island-bottom {
    gap: 6px;
  }

  .offer-island-action {
    width: 100%;
    text-align: center;
  }

  .offer-modal-panel {
    border-radius: 18px;
    width: calc(100% - 12px);
    padding: 20px 12px 14px;
  }

  .offer-modal-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .offer-modal-plan {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-confirm-actions {
    grid-template-columns: 1fr;
  }

  body.has-offer-island .pricing-footer {
    padding-bottom: 172px;
  }
}
