/* Subpages Editorial Layout — /buy/, /orders/, /dealer/, /legal/, /refund/
 * Shares the exact Green-Black & Bone Lapa Ninja system with landing.css.
 */
.page-shell {
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.page-shell--narrow {
  max-width: 68rem;
}

.section__head {
  display: grid;
  gap: 14px;
  max-width: 58ch;
}
.section__head p {
  font-size: var(--step-lead);
  color: var(--muted);
  line-height: 1.5;
}

.split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

/* Dealer pricing ladder — crisp stepped tonal fields, zero borders or resting shadows */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.price-card--featured {
  background: var(--field-inv);
  color: var(--field-inv-ink);
}
.price-card--featured h3,
.price-card--featured .price-card__val { color: var(--field-inv-ink); }
.price-card--featured .price-card__sub { color: var(--field-inv-muted); }
.price-card--featured .pill--accent {
  background: var(--field-inv-accent);
  color: var(--field-inv-accent-ink);
}
.price-card__tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.price-card__val {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-card__sub {
  font-size: var(--step-small);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

/* Segment switchers for Dealer Portal */
.seg-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-micro) ease, color var(--dur-micro) ease;
}
.seg-btn:hover { background: var(--surface-2); color: var(--ink); }
.seg-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* Dealer KPI stats */
.tier-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tier-mini__box {
  background: var(--surface);
  padding: 20px 24px;
  display: grid;
  gap: 6px;
}
.tier-mini__box span { font-size: var(--step-small); color: var(--muted); }
.tier-mini__box strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
}

/* Clean Editorial Lists */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: var(--step-body);
  color: var(--ink);
}
.check-list li {
  padding-left: 18px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* VietQR Box & Issued Key Display */
.qr-box {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  padding: 14px;
  background: #ffffff;
  display: grid;
  place-items: center;
}
.qr-box svg,
.qr-box img { width: 100%; height: 100%; }

.key-display {
  padding: 16px 20px;
  background: var(--surface-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; /* taste-skill-ignore */
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--accent);
  word-break: break-all;
}

/* Real Data Tables (tables legitimately carry horizontal lines) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface-2);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-small);
}
.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--field-border);
}
.table-wrap th {
  color: var(--muted);
  font-weight: 600;
}
.table-wrap tr:last-child th,
.table-wrap tr:last-child td { border-bottom: 0; }

/* Brand marks inside payment buttons */
.pay-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 3px 7px;
  height: 22px;
}
.brand-plate img { height: 14px; width: auto; display: block; }
.brand-icon { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; }

@media (max-width: 58rem) {
  .split-2,
  .pricing-grid,
  .tier-mini { grid-template-columns: 1fr; }
}
