/* Promo / gift-card redemption — the /redeem page, the landing "Got a code?"
   section and the pricing-page code strip. No shared app styles. */

/* ── Landing: "Got a code?" section ─────────────────────────────────────── */
.landing-main .redeem-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #ffedd5 100%);
    border-block: 1px solid #fde68a;
    text-align: center;
    scroll-margin-top: 150px;
}
.redeem-section .rs-inner { max-width: 1040px; margin: 0 auto; }
.redeem-section .rs-eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 7px 14px; border-radius: 999px;
    color: #9a3412; background: #fed7aa; font-size: .85rem; font-weight: 800; letter-spacing: .02em;
}
.redeem-section h2 { margin: 0 0 10px; color: #1e1b4b; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; }
.redeem-section .rs-sub { margin: 0 auto 28px; max-width: 620px; color: #4b5563; font-size: 1.05rem; }
.redeem-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 28px; text-align: left; }
.redeem-step {
    position: relative; background: #fff; border: 1px solid #fde68a; border-radius: 18px; padding: 20px 20px 18px 20px;
    box-shadow: 0 6px 20px rgba(146, 64, 14, .08);
}
.redeem-step .rst-num {
    width: 38px; height: 38px; border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 900; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 4px solid #fef3c7;
}
.redeem-step h3 { margin: 0 0 6px; font-size: 1.05rem; color: #1e1b4b; }
.redeem-step p { margin: 0; color: #4b5563; font-size: .95rem; line-height: 1.5; }
.redeem-cta-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.redeem-cta-row form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.redeem-cta-row input {
    padding: .8rem 1rem; border: 1.5px solid #fbbf24; border-radius: 12px; font-size: 1rem; font-family: inherit;
    text-transform: uppercase; letter-spacing: .06em; min-width: 220px; background: #fff;
}
.redeem-cta-row input:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.redeem-cta-row .primary-btn { padding: .8rem 1.6rem; font-size: 1rem; }
.redeem-section .rs-fine { margin: 14px 0 0; color: #92400e; font-size: .85rem; }
.rs-ready {
    display: none; margin: 0 auto 20px; padding: 12px 18px; border-radius: 14px; background: #ecfdf5; border: 1px solid #a7f3d0;
    color: #065f46; font-weight: 700; max-width: 640px;
}
.rs-ready.show { display: block; }
.rs-ready code { background: #d1fae5; padding: 2px 8px; border-radius: 6px; font-size: 1rem; letter-spacing: .06em; }

/* ── Pricing page: code strip + per-card promo lines ────────────────────── */
.pricing-code-strip {
    max-width: 760px; margin: 0 auto 2rem; padding: 16px 20px; border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; text-align: center;
}
.pricing-code-strip .pcs-title { margin: 0 0 10px; font-weight: 800; color: #92400e; font-size: 1rem; }
.pricing-code-strip form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pricing-code-strip input {
    padding: .7rem 1rem; border: 1.5px solid #fbbf24; border-radius: 12px; font-size: 1rem; font-family: inherit;
    text-transform: uppercase; letter-spacing: .06em; min-width: 220px; background: #fff;
}
.pricing-code-strip input:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.pricing-code-strip button { padding: .7rem 1.4rem; font-size: .95rem; }
.pricing-code-strip .pcs-feedback { margin: 10px 0 0; font-size: .95rem; font-weight: 700; min-height: 1.2em; }
.pricing-code-strip.applied { background: #ecfdf5; border-color: #a7f3d0; }
.pricing-code-strip.applied .pcs-title { color: #065f46; }
.pricing-code-strip .pcs-change { background: none; border: none; color: #4f46e5; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; font-size: .9rem; font-family: inherit; }
.plan-promo-line {
    display: none; margin: -.25rem 0 .75rem; padding: 8px 10px; border-radius: 10px; background: #ecfdf5; color: #065f46;
    font-weight: 800; font-size: .92rem; border: 1px solid #a7f3d0;
}
.plan-promo-line.show { display: block; }

/* ── /redeem page ───────────────────────────────────────────────────────── */
.redeem-page { max-width: 900px; margin: 0 auto; padding: 2rem 1rem 4rem; text-align: left; }
.redeem-page h1 { text-align: center; color: #1e1b4b; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: .5rem 0 .4rem; line-height: 1.15; }
.redeem-page .rp-sub { text-align: center; color: #4b5563; margin: 0 auto 1.75rem; max-width: 640px; font-size: 1.05rem; }

.rp-stepper { display: flex; justify-content: center; gap: 0; margin: 0 auto 2rem; padding: 0; list-style: none; flex-wrap: wrap; }
.rp-stepper li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: #6b7280; font-weight: 700; font-size: .9rem; }
.rp-stepper li .dot {
    width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; color: #6b7280; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 900;
}
.rp-stepper li.active { color: #4f46e5; }
.rp-stepper li.active .dot { background: #4f46e5; color: #fff; box-shadow: 0 0 0 4px #e0e7ff; }
.rp-stepper li.done { color: #059669; }
.rp-stepper li.done .dot { background: #10b981; color: #fff; }
.rp-stepper li + li::before { content: ''; width: 22px; height: 2px; background: #e5e7eb; margin-right: 6px; }

.rp-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 22px; padding: 1.6rem 1.75rem; margin-bottom: 1.25rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06); transition: opacity .25s ease;
}
.rp-card.locked { opacity: .55; pointer-events: none; }
.rp-card .rp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: .9rem; }
.rp-card .rp-card-head .n {
    width: 36px; height: 36px; border-radius: 50%; background: #4f46e5; color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rp-card.done .rp-card-head .n { background: #10b981; }
.rp-card h2 { margin: 0; font-size: 1.25rem; color: #1e1b4b; }
.rp-card .rp-help { margin: 0 0 .9rem; color: #4b5563; font-size: .95rem; }

.rp-code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-code-row input {
    flex: 1 1 240px; padding: .9rem 1rem; border: 1.5px solid #d1d5db; border-radius: 14px; font-size: 1.15rem; font-family: inherit;
    text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #111827;
}
.rp-code-row input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.rp-code-row button { padding: .9rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.rp-feedback { margin: .8rem 0 0; min-height: 1.4em; font-weight: 700; font-size: .98rem; }
.rp-feedback.ok { color: #059669; }
.rp-feedback.bad { color: #dc2626; }
.rp-feedback.wait { color: #6b7280; }
.rp-unlock {
    display: none; margin-top: 1rem; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0;
}
.rp-unlock.show { display: flex; gap: 14px; align-items: center; }
.rp-unlock .big { font-size: 1.6rem; }
.rp-unlock strong { display: block; color: #065f46; font-size: 1.15rem; }
.rp-unlock span { color: #047857; font-size: .95rem; }

.rp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: .5rem; }
.rp-plan {
    display: block; position: relative; border: 2px solid #e5e7eb; border-radius: 18px; padding: 16px 16px 14px; cursor: pointer;
    background: #fafafa; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rp-plan:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.rp-plan input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rp-plan.selected { border-color: #4f46e5; background: #fff; box-shadow: 0 0 0 4px #e0e7ff; }
.rp-plan .rpp-badge { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: #e0e7ff; color: #4338ca; margin-bottom: 8px; }
.rp-plan.popular .rpp-badge { background: #fef3c7; color: #92400e; }
.rp-plan h3 { margin: 0 0 4px; font-size: 1.1rem; color: #1e1b4b; }
.rp-plan .rpp-tag { margin: 0 0 10px; color: #6b7280; font-size: .88rem; min-height: 2.6em; }
.rp-plan .rpp-price { font-size: 1.5rem; font-weight: 900; color: #111827; line-height: 1.1; }
.rp-plan .rpp-price small { font-size: .85rem; font-weight: 700; color: #6b7280; }
.rp-plan .rpp-with-code { margin-top: 6px; font-weight: 800; color: #065f46; font-size: .9rem; }
.rp-plan .rpp-with-code s { color: #9ca3af; font-weight: 600; }
.rp-plan ul { margin: 10px 0 0; padding-left: 1.1rem; color: #4b5563; font-size: .85rem; line-height: 1.5; }
.rp-options { margin-top: 1rem; display: grid; gap: 12px; }
.rp-options label { font-weight: 700; color: #374151; font-size: .9rem; display: block; margin-bottom: 4px; }
.rp-options select {
    padding: .65rem .9rem; border: 1.5px solid #d1d5db; border-radius: 12px; font-family: inherit; font-size: 1rem; background: #fff; min-width: 200px;
}
.rp-exam-choice { display: none; }
.rp-exam-choice.show { display: block; }
.rp-exam-choice .opts { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-exam-choice .opts label {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid #d1d5db; border-radius: 12px; cursor: pointer; margin: 0; font-weight: 700;
}
.rp-exam-choice .opts label:has(input:checked) { border-color: #4f46e5; background: #eef2ff; color: #3730a3; }
.rp-summary {
    margin-top: 1rem; padding: 14px 16px; border-radius: 14px; background: #eef2ff; border: 1px solid #c7d2fe; color: #312e81; font-size: .98rem;
}
.rp-summary strong { color: #1e1b4b; }

.rp-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: .25rem 0 1.1rem; }
.rp-next div { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 14px; font-size: .92rem; color: #374151; }
.rp-next div b { display: block; color: #1e1b4b; margin-bottom: 3px; }
.rp-next .ico { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.rp-go { width: 100%; padding: 1rem; font-size: 1.1rem; border-radius: 14px; }
.rp-go[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }
.rp-go-note { text-align: center; margin: .6rem 0 0; color: #6b7280; font-size: .88rem; }

.rp-existing { background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 18px; padding: 1.1rem 1.4rem; margin-top: .5rem; color: #4b5563; font-size: .95rem; }
.rp-existing strong { color: #1e1b4b; }
.rp-existing a { color: #4f46e5; font-weight: 700; }
.rp-faq { margin-top: 1.5rem; }
.rp-faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.rp-faq summary { cursor: pointer; font-weight: 800; color: #1e1b4b; }
.rp-faq p { margin: 8px 0 0; color: #4b5563; font-size: .95rem; }

@media (max-width: 820px) {
    .redeem-steps, .rp-plans, .rp-next { grid-template-columns: 1fr; }
    .rp-stepper li + li::before { display: none; }
    .rp-stepper li { padding: 6px 8px; font-size: .82rem; }
    .rp-card { padding: 1.25rem 1.1rem; }
    .redeem-page { padding: 1.25rem .75rem 3rem; }
}

/* ── Nav: "Got a code?" — solid amber pill, same geometry as View Plans so
   the row stays level; attention comes from colour and a soft pulsing ring,
   never from movement. ───────────────────────────────────────────────── */
.nav-btn-code {
    display: inline-block; margin-left: .5rem; white-space: nowrap; /* baseline-aligned like its siblings */
    padding: .6rem 1.4rem; border-radius: 50px; text-decoration: none;
    font-weight: 800; font-size: .9rem; line-height: 1.15; color: #78350f;
    background: #fbbf24;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, .55), 0 4px 12px rgba(245, 158, 11, .35);
    animation: nav-code-ring 2.6s ease-out infinite;
    transition: background .2s, box-shadow .2s;
}
.nav-btn-code:hover { background: #f59e0b; color: #78350f; box-shadow: 0 0 0 4px #fde68a, 0 6px 16px rgba(245, 158, 11, .45); animation: none; }
@keyframes nav-code-ring {
    0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55), 0 4px 12px rgba(245, 158, 11, .35); }
    70%  { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0),  0 4px 12px rgba(245, 158, 11, .35); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0),  0 4px 12px rgba(245, 158, 11, .35); }
}
@media (prefers-reduced-motion: reduce) { .nav-btn-code { animation: none; box-shadow: 0 0 0 3px #fde68a, 0 4px 12px rgba(245, 158, 11, .35); } }
/* The gift sits on a white disc so it reads against the amber pill */
.nav-btn-code .nbc-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -3px 7px -3px -6px; border-radius: 50%; background: #fff; font-size: .95rem; line-height: 1; vertical-align: middle; box-shadow: 0 1px 3px rgba(120, 53, 15, .25); }
@media (max-width: 768px) { .nav-btn-code { padding: .55rem 1.1rem; font-size: .85rem; } }
