/* =========================================================================
   Flomax.ai — pricing page.
   Header, footer and buttons come from landing.css; only the page body lives
   here. Loaded after landing.css on purpose.
   ========================================================================= */

.pricing {
  padding-top: 138px;
  padding-bottom: 10px;
}

.pricing-hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.05em;
}

.pricing-lede {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.pricing-note-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 13px;
}

.pricing-note-inline svg { width: 15px; height: 15px; color: var(--violet); flex: none; }

/* ------------------------------------------------------------------ cards */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  overflow: hidden;
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad);
  opacity: .55;
}

.plan--featured {
  border-color: rgba(167, 139, 250, .38);
  background:
    radial-gradient(320px 190px at 100% 0%, rgba(167, 139, 250, .13), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}

.plan--featured::before { opacity: 1; }

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 139, 250, .45);
  border-radius: 999px;
  color: var(--violet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.plan-name {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -.04em;
}

.plan-price span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-credits {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.plan-credits svg { width: 16px; height: 16px; color: var(--violet); flex: none; }

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 6px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 13.5px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
}

.plan-cta {
  margin-top: auto;
  justify-content: center;
}

.plan-cta[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

/* ------------------------------------------------------------- how + faq */

.pricing-steps,
.pricing-faq { margin-top: clamp(56px, 7vw, 88px); }

.pricing-steps h2,
.pricing-faq h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.pricing-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-steps li {
  display: flex;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .02);
}

.pricing-step-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--ink-2);
  flex: none;
}

.pricing-step-icon svg { width: 17px; height: 17px; }

.pricing-steps h3 {
  font-size: 14px;
  font-weight: 600;
}

.pricing-steps p {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.pricing-faq details {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .02);
}

.pricing-faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

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

.pricing-faq summary::after {
  content: "+";
  float: right;
  color: var(--ink-3);
  font-weight: 400;
}

.pricing-faq details[open] summary::after { content: "–"; }

.pricing-faq details p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
  max-width: 72ch;
}

@media (max-width: 900px) {
  .pricing-grid,
  .pricing-steps ol { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .pricing { padding-top: 118px; }
  .plan { padding: 24px 20px 22px; }
}

/* ------------------------------------------------------- buy button group */

/* QRIS on top, WhatsApp under it: both stay visible so a gateway outage
   never leaves the page with no way to sell. */
.plan-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.plan-cta-group .plan-cta { margin-top: 0; justify-content: center; }

.plan-cta--wa { height: 44px; font-size: 13.5px; }

/* ------------------------------------------------------------- pay modal */

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pay-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, .72);
  backdrop-filter: blur(6px);
}

.pay-card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(167, 139, 250, .10), transparent 65%),
    var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.pay-close:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.pay-close svg { width: 15px; height: 15px; }

.pay-head { text-align: center; }

.pay-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--violet-soft);
  color: var(--violet);
}

.pay-icon svg { width: 23px; height: 23px; }

.pay-head h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.pay-plan {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pay-stage { margin-top: 16px; text-align: center; }

.pay-note {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

/* The QR sits on white: any scanner needs the dark modules on a light field,
   and the dark theme must not bleed into it. */
.pay-qr {
  display: inline-block;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff;
  line-height: 0;
}

.pay-qr img { width: 220px; height: 220px; }

.pay-placeholder {
  display: grid;
  place-items: center;
  width: 244px;
  height: 244px;
  margin: 16px auto 0;
  padding: 0 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.pay-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  color: var(--ink-2);
}

.pay-total strong {
  color: var(--violet);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.pay-countdown {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pay-status {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.pay-status--error { color: var(--danger); }

.pay-done { margin-top: 18px; text-align: center; }

.pay-done-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.pay-done .btn-primary { margin-top: 16px; }

.pay-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pay-actions .pay-retry { width: 100%; }

.pay-help {
  color: var(--ink-3);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pay-help:hover { color: var(--ink-2); }

.pay-dismiss {
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pay-dismiss:hover { color: var(--ink); }

@media (max-width: 480px) {
  .pay-card { padding: 24px 18px 18px; }
  .pay-qr img { width: 200px; height: 200px; }
  .pay-placeholder { width: 224px; height: 224px; }
}