/* ════════════════════════════════════════════════════════════════════════
   UNDRGRADZ — /plans (A+ pricing page)
   Built on landing.css's tokens (--ink, --fg, --n-*, --font, --display,
   --gutter, --line, --ease) so the page reads as part of the landing site,
   not a ported app screen. No local color/radius tokens of its own.
   ════════════════════════════════════════════════════════════════════════ */

.k-gold { color: var(--n-gold); text-shadow: 0 0 18px rgba(251, 191, 36, 0.45); }

/* ── AP Hero ───────────────────────────────────────────────────────────── */
.ap-hero {
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(50px, 7vh, 90px);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.ap-hero .kicker { margin-bottom: 22px; }
.ap-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 88px);
  line-height: 1.28;
  background: linear-gradient(180deg, #fff 20%, var(--n-gold) 70%, #8a5a06 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(251, 191, 36, 0.22));
}
.ap-sub {
  max-width: 480px;
  margin: 22px auto 0;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 300;
  color: var(--fg2);
}
.ap-banner {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 44px auto 0;
  border-radius: 26px;
  border: 1.5px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
}

/* ── Privileges grid ───────────────────────────────────────────────────── */
.ap-feats { padding: 0 var(--gutter) clamp(50px, 7vh, 90px); max-width: 1100px; margin: 0 auto; }
.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ap-feat {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--hue) 9%, var(--ink-2)), var(--ink-2)) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--hue) 65%, transparent), transparent 60%) border-box;
  box-shadow: 0 0 24px -14px color-mix(in srgb, var(--hue) 60%, transparent);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.ap-feat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--hue) 75%, transparent); }
.ap-feat-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  color: var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--hue) 40%, transparent);
  box-shadow: 0 0 16px -6px color-mix(in srgb, var(--hue) 60%, transparent);
}
.ap-feat-ic .ic { width: 20px; height: 20px; }
.ap-feat-body { min-width: 0; }
.ap-feat-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.ap-feat-sub { font-size: 13px; color: var(--fg3); line-height: 1.3; margin-top: 3px; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.ap-pricing {
  padding: 0 var(--gutter) clamp(90px, 12vh, 150px);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.ap-pricing .kicker { margin-bottom: 16px; }
.ap-pricing-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.3;
  margin-bottom: 40px;
}

.ap-plans {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 34px;
}
.ap-plan {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--hue) 10%, var(--ink-2)), var(--ink-2)) padding-box,
    linear-gradient(165deg, var(--hue), color-mix(in srgb, var(--hue) 35%, transparent) 60%, rgba(255, 255, 255, 0.1)) border-box;
  box-shadow: 0 20px 50px -26px color-mix(in srgb, var(--hue) 55%, transparent);
  padding: 26px 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-width 0.2s;
}
.ap-plan:hover { transform: translateY(-3px); }
.ap-plan.is-rec { padding: 30px 14px 24px; }
.ap-plan.selected {
  border-width: 2px;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--hue) 18%, var(--ink-2)), var(--ink-2)) padding-box,
    linear-gradient(165deg, var(--hue), color-mix(in srgb, var(--hue) 55%, transparent) 60%, rgba(255, 255, 255, 0.2)) border-box;
  box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--hue) 75%, transparent), 0 0 0 1px color-mix(in srgb, var(--hue) 45%, transparent);
}

.ap-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--hue), color-mix(in srgb, var(--hue) 50%, #fff));
  color: #0a0518;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--hue) 70%, transparent);
}
.ap-plan-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hue);
  color: #0a0518;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px color-mix(in srgb, var(--hue) 70%, transparent);
}
.ap-plan-check .ic { width: 12px; height: 12px; stroke-width: 3; }
.ap-plan.selected .ap-plan-check { display: flex; }

.ap-plan-title { font-size: 13px; font-weight: 700; color: var(--fg2); margin-bottom: 10px; letter-spacing: 0.02em; }
.ap-plan-price { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: #fff; }
.ap-plan-unit { font-size: 12px; color: var(--fg3); margin-top: 2px; }
.ap-plan-sub { font-size: 12px; font-weight: 700; color: var(--hue); margin-top: 14px; }

.ap-cta { width: 100%; max-width: 420px; }
.ap-cancel { font-size: 13px; color: var(--fg3); margin-top: 16px; }

/* ── Modals (login / fake card / success) ─────────────────────────────── */
.ap-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 8, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ap-modal-overlay[hidden] { display: none; }
.ap-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 34px 28px 28px;
  border-radius: 24px;
  border: 1.5px solid var(--line);
  background: linear-gradient(165deg, #0e0e18, #060609);
  box-shadow: 0 50px 110px -30px rgba(0, 0, 0, 0.9);
  animation: apModalIn 0.35s var(--ease) both;
}
@keyframes apModalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.ap-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ap-modal-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ap-modal-close .ic { width: 16px; height: 16px; }
.ap-modal-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  margin: 10px 0 8px;
}
.ap-modal-sub { font-size: 14px; color: var(--fg2); margin-bottom: 22px; }

.ap-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ap-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--fg2); text-align: left; min-width: 0; }
.ap-form input {
  width: 100%;
  min-width: 0;
  font-family: var(--font);
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.ap-form input:focus { border-color: var(--n-gold); }
.ap-form-row { display: flex; gap: 12px; min-width: 0; }
.ap-form-row label { flex: 1; min-width: 0; }
.ap-form-note { font-size: 12px; color: var(--fg3); text-align: left; margin-top: -4px; }
.ap-form-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--n-red);
  background: rgba(255, 46, 63, 0.1);
  border: 1px solid rgba(255, 46, 63, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
}
.ap-form-submit { margin-top: 4px; width: 100%; }
.ap-form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fg3);
  text-align: center;
  margin-top: 6px;
}
.ap-form-trust .ic { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Plan summary card (checkout Step 2) ──────────────────────────────── */
.ap-summary-card {
  position: relative;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--hue) 14%, var(--ink-2)), var(--ink-2)) padding-box,
    linear-gradient(160deg, var(--hue), color-mix(in srgb, var(--hue) 40%, transparent) 60%) border-box;
  box-shadow: 0 16px 40px -22px color-mix(in srgb, var(--hue) 60%, transparent);
  padding: 18px 16px 16px;
  margin-bottom: 16px;
  text-align: left;
}
.ap-summary-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--hue), color-mix(in srgb, var(--hue) 50%, #fff));
  color: #0a0518;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ap-summary-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ap-summary-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ap-summary-price { font-family: var(--display); font-size: 26px; font-weight: 400; color: #fff; }
.ap-summary-save { font-size: 12px; font-weight: 700; color: var(--hue); }
.ap-summary-permonth { font-size: 12px; color: var(--fg3); margin-top: 6px; }

/* ── Trust row ─────────────────────────────────────────────────────────── */
.ap-trust-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ap-trust-row li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg2);
  min-width: 0;
}
.ap-trust-row .ic { width: 13px; height: 13px; color: var(--n-green); flex-shrink: 0; }

/* ── Pay with ──────────────────────────────────────────────────────────── */
.ap-pay-with { margin-bottom: 18px; }
.ap-pay-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg3); margin-bottom: 8px; }
.ap-pay-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  flex-shrink: 0;
}
.pc-visa { background: #1a1f71; }
.pc-mc { background: #16171a; gap: 0; padding: 0 9px; }
.pc-mc i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pc-mc i:first-child { background: #eb001b; margin-right: -5px; }
.pc-mc i:last-child { background: #f79e1b; mix-blend-mode: screen; }
.pc-amex { background: #2e77bc; }
.pc-apple { background: #000; border: 1px solid var(--line); }
.pc-google { background: #fff; color: #3c4043; }

.ap-modal-success { text-align: center; }
.ap-success-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--n-green), #16803c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px -8px var(--n-green);
}
.ap-success-badge .ic { width: 26px; height: 26px; stroke-width: 3; }
.ap-modal-success .ap-modal-sub { text-align: center; }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .ap-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px) {
  .ap-hero { padding: 100px 20px 40px; }
  .ap-title { font-size: clamp(34px, 9vw, 48px); }
  .ap-banner { margin-top: 32px; border-radius: 18px; }

  .ap-feats { padding: 0 20px 40px; }
  .ap-grid { grid-template-columns: 1fr; gap: 10px; }
  .ap-feat { padding: 14px; }

  .ap-pricing { padding: 0 20px 70px; }
  .ap-pricing-title { margin-bottom: 26px; }
  .ap-plans { flex-direction: column; gap: 20px; }
  .ap-plan, .ap-plan.is-rec { padding: 24px 16px 18px; }

  .ap-modal { padding: 30px 20px 22px; }
}
