:root {
    --app-bg: #f8fafc;
    --app-surface: #ffffff;
    --app-surface-muted: #f3f4f6;
    --app-surface-soft: #e5e7eb;
    --app-surface-strong: #111827;
    --app-text: #0f172a;
    --app-text-muted: #475569;
    --app-text-soft: #64748b;
    --app-border: #d1d5db;
    --app-border-soft: #e5e7eb;
    --app-shadow: rgba(15, 23, 42, 0.08);
    --app-shadow-strong: rgba(15, 23, 42, 0.18);
    --app-overlay: rgba(15, 23, 42, 0.55);
    --app-focus: #29b64c;
    /* primary brand color */

    /* Brand palette (requested) */
    --brand-strong: #1d7739;
    /* dark green */
    --brand: #29b64c;
    /* vibrant green */
    --brand-muted: #3d463f;
    /* muted dark */
    --brand-white: #ffffff;
}

html {
    color-scheme: light;
    background: var(--app-bg);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --app-bg: #0f172a;
    --app-surface: #111827;
    --app-surface-muted: #1f2937;
    --app-surface-soft: #334155;
    --app-surface-strong: #020617;
    --app-text: #e5e7eb;
    --app-text-muted: #cbd5e1;
    --app-text-soft: #94a3b8;
    --app-border: #334155;
    --app-border-soft: #475569;
    --app-shadow: rgba(0, 0, 0, 0.35);
    --app-shadow-strong: rgba(0, 0, 0, 0.5);
    --app-overlay: rgba(2, 6, 23, 0.72);
    --app-focus: #1d7739;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

html.has-page-transitions body {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.24s ease, transform 0.24s ease, background-color 0.25s ease, color 0.25s ease;
}

html.has-page-transitions body.page-ready {
    opacity: 1;
    transform: translateY(0);
}

html.has-page-transitions body.page-leave {
    opacity: 0;
    transform: translateY(6px);
}

a,
button,
input,
select,
textarea {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

img,
canvas,
iframe {
    max-width: 100%;
}

.site-logo {
    width: 14rem;
    max-width: 100%;
    height: auto;
    max-height: 4.5rem;
    object-fit: contain;
    display: block;
}

.site-logo--small {
    width: 12rem;
    max-height: 4rem;
}

.site-logo--brand {
    width: 16rem;
    max-height: 5rem;
}

.site-logo--large {
    width: 18rem;
    max-height: 5.75rem;
}

/* Enhanced animation for modal pop-up */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(0, -15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.modal-fade-in-down {
    animation: fadeInDown 0.3s ease-out;
}

/* Transition classes for scroll animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

#mobile-menu.open {
    max-height: 500px;
}

.theme-toggle-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--app-border);
    background: color-mix(in srgb, var(--app-surface) 92%, transparent);
    color: var(--app-text);
    box-shadow: 0 18px 40px var(--app-shadow-strong);
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.theme-toggle-button:hover {
    transform: translateY(-1px);
}

.theme-toggle-button:focus-visible {
    outline: 2px solid var(--app-focus);
    outline-offset: 3px;
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand));
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1;
}

.theme-toggle-text {
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .theme-toggle-button {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.7rem 0.85rem;
    }

    .theme-toggle-text {
        display: none;
    }
}

@media print {
    .theme-toggle-button {
        display: none !important;
    }
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .hover\:bg-white:hover {
    background-color: var(--app-surface) !important;
}

html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .hover\:bg-gray-50:hover {
    background-color: var(--app-bg) !important;
}

html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .hover\:bg-gray-100:hover,
html[data-theme="dark"] .bg-gray-200,
html[data-theme="dark"] .hover\:bg-gray-200:hover {
    background-color: var(--app-surface-muted) !important;
}

html[data-theme="dark"] .bg-gray-800,
html[data-theme="dark"] .bg-gray-900 {
    background-color: var(--app-surface-strong) !important;
}

html[data-theme="dark"] .bg-gray-300 {
    background-color: #475569 !important;
}

html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800 {
    color: var(--app-text) !important;
}

html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600 {
    color: var(--app-text-muted) !important;
}

html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-400 {
    color: var(--app-text-soft) !important;
}

html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300,
html[data-theme="dark"] .border-t,
html[data-theme="dark"] .border-b,
html[data-theme="dark"] .border-l,
html[data-theme="dark"] .border-r {
    border-color: var(--app-border) !important;
}

html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-md,
html[data-theme="dark"] .shadow-lg,
html[data-theme="dark"] .shadow-xl,
html[data-theme="dark"] .shadow-2xl {
    box-shadow: 0 18px 45px var(--app-shadow) !important;
}

html[data-theme="dark"] .bg-indigo-50 {
    background-color: rgba(79, 70, 229, 0.18) !important;
}

html[data-theme="dark"] .bg-indigo-100 {
    background-color: rgba(79, 70, 229, 0.24) !important;
}

html[data-theme="dark"] .bg-green-50 {
    background-color: rgba(34, 197, 94, 0.14) !important;
}

html[data-theme="dark"] .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.16) !important;
}

html[data-theme="dark"] .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.14) !important;
}

html[data-theme="dark"] .bg-purple-50,
html[data-theme="dark"] .bg-violet-100 {
    background-color: rgba(168, 85, 247, 0.16) !important;
}

html[data-theme="dark"] .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.14) !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-orange-50 {
    background-color: rgba(245, 158, 11, 0.14) !important;
}

html[data-theme="dark"] .bg-teal-50 {
    background-color: rgba(20, 184, 166, 0.14) !important;
}

html[data-theme="dark"] .bg-pink-50 {
    background-color: rgba(236, 72, 153, 0.14) !important;
}

html[data-theme="dark"] .bg-emerald-100,
html[data-theme="dark"] .bg-green-100,
html[data-theme="dark"] .bg-blue-100,
html[data-theme="dark"] .bg-purple-100,
html[data-theme="dark"] .bg-red-100,
html[data-theme="dark"] .bg-orange-100,
html[data-theme="dark"] .bg-teal-100,
html[data-theme="dark"] .bg-pink-100,
html[data-theme="dark"] .bg-violet-100 {
    filter: saturate(0.8) brightness(0.9);
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: var(--app-surface-muted) !important;
    color: var(--app-text) !important;
    border-color: var(--app-border) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--app-text-soft) !important;
}

html[data-theme="dark"] input:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] select:disabled {
    background-color: var(--app-surface-muted) !important;
    color: var(--app-text-soft) !important;
}

html[data-theme="dark"] .bg-black {
    background-color: rgba(2, 6, 23, 0.85) !important;
}

html[data-theme="dark"] .bg-black.bg-opacity-50,
html[data-theme="dark"] .bg-black.bg-opacity-60,
html[data-theme="dark"] .bg-black.bg-opacity-70 {
    background-color: var(--app-overlay) !important;
}

html[data-theme="dark"] .hover\:bg-indigo-50:hover {
    background-color: rgba(79, 70, 229, 0.24) !important;
}

html[data-theme="dark"] .hover\:bg-gray-50:hover,
html[data-theme="dark"] .hover\:bg-gray-100:hover {
    background-color: var(--app-surface-muted) !important;
}

html[data-theme="dark"] .hover\:text-gray-800:hover,
html[data-theme="dark"] .hover\:text-gray-700:hover,
html[data-theme="dark"] .hover\:text-gray-600:hover {
    color: var(--app-text) !important;
}

html[data-theme="dark"] .hover\:border-indigo-200:hover,
html[data-theme="dark"] .hover\:border-gray-200:hover {
    border-color: var(--app-border-soft) !important;
}

html[data-theme="dark"] .bg-white\/80,
html[data-theme="dark"] .bg-white\/90 {
    background-color: color-mix(in srgb, var(--app-surface) 88%, transparent) !important;
}

/* ==========================
   Brand palette remapping
   Map commonly used Tailwind-style utility classes to the new greens
   ========================== */

/* Text colors */
.text-blue-600,
.text-indigo-600,
.text-green-600 {
    color: var(--brand) !important;
}

/* Background variations */
.bg-blue-50,
.hover\:bg-blue-50:hover,
.bg-indigo-50,
.hover\:bg-indigo-50:hover {
    background-color: color-mix(in srgb, var(--brand) 8%, var(--brand-white)) !important;
}

.bg-blue-100,
.hover\:bg-blue-100:hover,
.bg-indigo-100,
.hover\:bg-indigo-100:hover {
    background-color: color-mix(in srgb, var(--brand) 16%, var(--brand-white)) !important;
}

.bg-blue-500,
.bg-blue-600,
.bg-blue-700,
.bg-indigo-500,
.bg-indigo-600,
.bg-indigo-700 {
    background-color: var(--brand) !important;
    color: var(--brand-white) !important;
}

.hover\:bg-blue-700:hover,
.bg-green-600,
.bg-green-700 {
    background-color: var(--brand-strong) !important;
    color: var(--brand-white) !important;
}

.hover\:bg-indigo-700:hover,
.hover\:bg-blue-600:hover,
.hover\:bg-green-700:hover {
    background-color: var(--brand-strong) !important;
}

/* Helper: ensure indigo hover text uses brand */
.hover\:text-blue-600:hover,
.hover\:text-indigo-600:hover {
    color: var(--brand) !important;
}

.border-blue-200,
.border-indigo-200,
.border-blue-600,
.border-indigo-600 {
    border-color: var(--brand) !important;
}

/* Premium home slider */
.hero-slider-section {
    background:
        linear-gradient(105deg, #d9efe2 0%, #d9efe2 40%, #eef7f2 40%, #eef7f2 100%);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    border-radius: 1.6rem;
    background: color-mix(in srgb, var(--app-surface) 88%, transparent);
    border: 1px solid var(--app-border-soft);
    box-shadow: 0 26px 60px var(--app-shadow);
    overflow: hidden;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 3.4rem 3.2rem;
}

.hero-slide__content {
    max-width: 34rem;
}

.hero-kicker-dots {
    display: inline-flex;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.hero-kicker-dots span {
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 999px;
    background: #b8c3d5;
}

.hero-kicker-dots span.is-active {
    width: 2.45rem;
    background: var(--brand);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.9rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f1937;
}

.hero-title span {
    color: var(--brand);
}

.hero-desc {
    margin-top: 1rem;
    font-size: clamp(0.98rem, 1.2vw, 1.15rem);
    color: #445875;
    line-height: 1.5;
    max-width: 34rem;
}

.hero-primary-cta,
.hero-welcome-block {
    margin-top: 1.45rem;
}

.hero-primary-cta {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 2.1rem;
    border-radius: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-size: 0.92rem;
}

.hero-btn--main {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(41, 182, 76, 0.28);
}

.hero-btn--ghost {
    background: #ffffff;
    color: var(--brand);
    border: 1px solid rgba(41, 182, 76, 0.28);
}

.hero-welcome-copy {
    font-size: 1rem;
    color: #3d4f69;
    margin-bottom: 0.8rem;
}

.hero-inline-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-slide__visual {
    display: grid;
    justify-items: end;
}

.hero-steps-card,
.hero-proof-grid,
.hero-comparison,
.hero-pillars,
.hero-material-stack {
    width: min(27rem, 100%);
}

.hero-steps-card {
    display: grid;
    gap: 1rem;
}

.hero-step {
    background: #f4f5f7;
    border: 1px solid #d9e0eb;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.9rem;
    align-items: center;
    box-shadow: 0 8px 18px rgba(17, 25, 40, 0.08);
}

.hero-step span {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: #e0f5e7;
    color: var(--brand-strong);
}

.hero-step strong {
    display: block;
    color: #1e2b44;
    font-size: 0.98rem;
}

.hero-step p {
    color: #58708f;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.hero-step.is-current {
    border-color: var(--brand);
    box-shadow: 0 14px 26px rgba(41, 182, 76, 0.2);
}

.hero-step.is-current span {
    background: var(--brand);
    color: #ffffff;
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: end;
}

.hero-proof-card {
    background: #f4f5f7;
    border: 1px solid #dde3ec;
    border-radius: 1.1rem;
    padding: 0.92rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.09);
}

.hero-proof-card strong {
    font-size: 0.98rem;
    color: #1f2b45;
}

.hero-proof-card small {
    display: block;
    color: #667d99;
    font-weight: 700;
    margin-top: 0.2rem;
}

.hero-proof-card p {
    margin-top: 0.8rem;
    border-radius: 0.7rem;
    background: #e4f3ea;
    color: var(--brand-strong);
    font-weight: 800;
    padding: 0.5rem 0.55rem;
    text-align: center;
    font-size: 0.9rem;
}

.hero-proof-banner {
    grid-column: 1 / -1;
    background: var(--brand-strong);
    color: #ffffff;
    border-radius: 1.1rem;
    padding: 1rem 1.15rem;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-sheet {
    width: 11.2rem;
    height: 9.8rem;
    border-radius: 1.15rem;
    display: grid;
    place-items: center;
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-sheet--bad {
    background: #eff1f5;
    color: #9aa7bb;
    transform: rotate(-3deg);
}

.hero-sheet--good {
    background: #ffffff;
    border: 1px solid #cad7ea;
    color: var(--brand-strong);
    box-shadow: 0 18px 30px rgba(41, 182, 76, 0.15);
    transform: rotate(3deg);
}

.hero-pillars,
.hero-material-stack {
    display: grid;
    gap: 0.8rem;
}

.hero-pillars span,
.hero-material-stack div {
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: #f4f6fb;
    border: 1px solid #d8e0ec;
    font-weight: 800;
    color: #29405f;
    font-size: 0.96rem;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    border: 1px solid #d4dbe8;
    background: #ffffff;
    color: var(--brand-strong);
    font-size: 2.2rem;
    line-height: 1;
    z-index: 5;
    display: grid;
    place-items: center;
}

.hero-nav--prev {
    left: 1.1rem;
}

.hero-nav--next {
    right: 1.1rem;
}

.hero-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 6;
}

.hero-dots button {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #b8c3d6;
    border: none;
}

.hero-dots button.is-active {
    width: 2.2rem;
    background: var(--brand);
}

@media (max-width: 1024px) {
    .hero-slide {
        padding: 2.6rem 2.2rem 3rem;
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .hero-slide__visual {
        justify-items: start;
    }

    .hero-nav {
        top: auto;
        bottom: 0.85rem;
        transform: none;
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.7rem;
    }

    .hero-nav--prev {
        left: 1rem;
    }

    .hero-nav--next {
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        border-radius: 1.15rem;
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-slide {
        padding: 1.1rem 0.85rem 2.4rem;
        gap: 0.8rem;
    }

    .hero-title {
        font-size: 1.38rem;
    }

    .hero-desc {
        font-size: 0.84rem;
    }

    .hero-kicker-dots {
        margin-bottom: 0.6rem;
    }

    .hero-kicker-dots span {
        width: 0.45rem;
        height: 0.45rem;
    }

    .hero-kicker-dots span.is-active {
        width: 1.6rem;
    }

    .hero-btn {
        width: 100%;
        font-size: 0.78rem;
        padding: 0.6rem 0.9rem;
    }

    .hero-inline-actions {
        flex-direction: column;
    }

    .hero-primary-cta,
    .hero-welcome-block {
        margin-top: 1rem;
    }

    .hero-slide__visual {
        display: none;
    }

    .hero-steps-card,
    .hero-proof-grid,
    .hero-comparison,
    .hero-pillars,
    .hero-material-stack {
        width: 100%;
    }

    .hero-proof-grid {
        grid-template-columns: 1fr;
    }

    .hero-sheet {
        width: 49%;
        height: 6.7rem;
        font-size: 0.75rem;
    }

    .hero-nav {
        width: 2.1rem;
        height: 2.1rem;
    }

    .hero-dots {
        bottom: 0.6rem;
    }
}

@keyframes heroFloatIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGlow {

    0%,
    100% {
        box-shadow: 0 16px 32px rgba(41, 182, 76, 0.22);
    }

    50% {
        box-shadow: 0 20px 40px rgba(41, 182, 76, 0.32);
    }
}

.hero-slide.is-active .hero-slide__content>* {
    animation: heroFloatIn 0.7s ease both;
}

.hero-slide.is-active .hero-slide__visual>* {
    animation: heroFloatIn 0.85s ease both;
}

.hero-btn--main {
    animation: heroGlow 4s ease-in-out infinite;
}

@media (max-width: 640px) {

    .hero-steps-card,
    .hero-proof-grid,
    .hero-comparison,
    .hero-pillars,
    .hero-material-stack {
        gap: 0.6rem;
    }

    .hero-proof-banner {
        font-size: 1.25rem;
        padding: 0.85rem 1rem;
    }

    .hero-pillars span,
    .hero-material-stack div {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}

html[data-theme="dark"] .hero-slider-section {
    background: linear-gradient(105deg, #131b2b 0%, #131b2b 38%, #1b2740 38%, #1b2740 100%);
}

html[data-theme="dark"] .hero-slider {
    background: color-mix(in srgb, var(--app-surface) 90%, #11172a);
}

html[data-theme="dark"] .hero-title {
    color: #eff4ff;
}

html[data-theme="dark"] .hero-desc,
html[data-theme="dark"] .hero-welcome-copy {
    color: #b8c5da;
}

html[data-theme="dark"] .hero-step,
html[data-theme="dark"] .hero-proof-card,
html[data-theme="dark"] .hero-pillars span,
html[data-theme="dark"] .hero-material-stack div,
html[data-theme="dark"] .hero-sheet--bad,
html[data-theme="dark"] .hero-sheet--good {
    background: #1d273b;
    border-color: #33435f;
}

html[data-theme="dark"] .hero-step strong,
html[data-theme="dark"] .hero-proof-card strong,
html[data-theme="dark"] .hero-pillars span,
html[data-theme="dark"] .hero-material-stack div {
    color: #d8e2f3;
}

html[data-theme="dark"] .hero-step p,
html[data-theme="dark"] .hero-proof-card small {
    color: #9aacc8;
}

html[data-theme="dark"] .hero-proof-card p {
    background: rgba(117, 65, 221, 0.24);
}

html[data-theme="dark"] .hero-nav {
    background: #1f2a40;
    border-color: #344663;
    color: #dbe7fb;
}

/* Counselling packages */
.counselling-section {
    background: radial-gradient(circle at top, rgba(41, 182, 76, 0.08), transparent 55%), var(--app-surface);
}

.plan-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-muted);
}

.plan-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 960px) {
    .plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.plan-card {
    --plan-accent: var(--brand);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1.5rem;
    padding: 1.75rem 1.7rem;
    box-shadow: 0 20px 45px var(--app-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--plan-accent), color-mix(in srgb, var(--plan-accent) 60%, transparent));
}

.plan-card__top {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.plan-card__tier {
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--plan-accent) 12%, var(--brand-white));
    color: var(--plan-accent);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.plan-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--app-text);
}

.plan-card__desc {
    color: var(--app-text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.plan-list {
    display: grid;
    gap: 0.6rem;
    color: var(--app-text);
    font-weight: 600;
}

.plan-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 600;
}

.plan-list li::before {
    content: ">";
    color: var(--plan-accent);
    font-weight: 800;
}

.plan-card__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-top: auto;
}

.plan-card__price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--plan-accent);
}

.plan-card__original-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text-muted);
    text-decoration: line-through;
    opacity: 0.75;
}

/* ── Bestseller Badge ─────────────────────────────── */
@keyframes bs-shimmer {
    0%   { transform: translateX(-120%) skewX(-18deg); }
    100% { transform: translateX(320%)  skewX(-18deg); }
}

@keyframes bs-pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(251,191,36,.75),
                       0 6px 24px rgba(217,119,6,.55); }
    60%  { box-shadow: 0 0 0 10px rgba(251,191,36,.0),
                       0 6px 24px rgba(217,119,6,.55); }
    100% { box-shadow: 0 0 0 0   rgba(251,191,36,.0),
                       0 6px 24px rgba(217,119,6,.55); }
}

@keyframes bs-float {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-3px);  }
}

@keyframes bs-card-glow {
    0%, 100% { box-shadow: 0 20px 45px var(--app-shadow),
                           0 0 0 2px rgba(251,191,36,.20),
                           0 0 55px rgba(251,191,36,.12); }
    50%       { box-shadow: 0 20px 45px var(--app-shadow),
                           0 0 0 2px rgba(251,191,36,.50),
                           0 0 80px rgba(251,191,36,.25); }
}

.plan-card--tier2 {
    animation: bs-card-glow 2.8s ease-in-out infinite;
}

.plan-card__bestseller-badge {
    /* layout */
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /* appearance */
    background: linear-gradient(110deg, #f59e0b 0%, #fbbf24 40%, #d97706 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.38rem 1rem 0.38rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;

    /* animations */
    animation: bs-pulse-ring 2s ease-out infinite,
               bs-float       3s ease-in-out infinite;

    /* text shadow for depth */
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* shimmer sweep bar */
.plan-card__bestseller-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255,255,255,.55) 50%,
        transparent 80%
    );
    animation: bs-shimmer 2.2s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* subtle inner highlight arc */
.plan-card__bestseller-badge::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, transparent 100%);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}


.plan-card__foot {
    color: var(--app-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: 0.85rem;
    font-weight: 700;
    color: var(--brand-white);
    background: var(--plan-accent);
    box-shadow: 0 12px 25px color-mix(in srgb, var(--plan-accent) 35%, transparent);
    text-decoration: none;
}

.plan-cta:hover {
    transform: translateY(-1px);
}

.predictor-marketing-section {
    background: radial-gradient(circle at top, rgba(41, 182, 76, 0.08), transparent 55%), var(--app-surface);
}

.predictor-marketing-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 960px) {
    .predictor-marketing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.predictor-card--primary {
    --plan-accent: var(--brand);
}

.predictor-card--shortlist {
    --plan-accent: #1f4c9c;
}

.shortlist-list {
    margin-top: 0.4rem;
    display: grid;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--app-text);
}

.shortlist-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.shortlist-list [data-lucide] {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--brand);
}

.community-section {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--brand-white)), var(--app-surface));
}

.community-card {
    border: 1px solid var(--app-border-soft);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--app-surface) 92%, transparent);
    box-shadow: 0 22px 55px var(--app-shadow);
    padding: 2rem 1.8rem;
    display: grid;
    gap: 1.4rem;
    align-items: center;
}

@media (min-width: 960px) {
    .community-card {
        grid-template-columns: 1.4fr 0.6fr;
        gap: 2rem;
    }
}

.community-actions {
    display: grid;
    gap: 0.75rem;
}

.community-cta,
.community-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 35px var(--app-shadow);
}

.community-cta {
    background: #22c55e;
    color: #ffffff;
}

.community-secondary {
    background: color-mix(in srgb, var(--app-surface) 92%, transparent);
    color: var(--brand-strong);
    border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--app-border));
}

.community-cta:hover,
.community-secondary:hover {
    transform: translateY(-1px);
}

.community-cta [data-lucide],
.community-secondary [data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
}

.video-section {
    background: radial-gradient(circle at top, rgba(41, 182, 76, 0.07), transparent 60%), var(--app-surface);
}

.video-embed {
    position: relative;
    width: min(960px, 100%);
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--app-border-soft);
    box-shadow: 0 20px 55px var(--app-shadow);
    background: var(--app-surface);
}

.video-embed::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.footer-grid {
    display: grid;
    gap: 1.2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1.3fr;
    }
}

.footer-title {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.footer-subtitle {
    margin-top: 0.35rem;
    color: rgba(226, 232, 240, 0.8);
    font-weight: 600;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-end;
    }
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.social-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 182, 76, 0.45);
}

.social-btn [data-lucide] {
    width: 1.05rem;
    height: 1.05rem;
}

.footer-meta {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(226, 232, 240, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.plan-card--tier1 {
    --plan-accent: #1d7739;
}

.plan-card--tier2 {
    --plan-accent: #1f4c9c;
}

.plan-card--tier3 {
    --plan-accent: #5b2b82;
}

html[data-theme="dark"] .counselling-section {
    background: radial-gradient(circle at top, rgba(41, 182, 76, 0.12), transparent 60%), var(--app-bg);
}

/* Top college logo marquee */
.college-strip-section {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--brand-white)), var(--app-surface));
}

.college-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    border: 1px solid var(--app-border-soft);
    background: color-mix(in srgb, var(--app-surface) 90%, var(--brand-white));
    box-shadow: 0 18px 40px var(--app-shadow);
    padding: 1rem 0;
}

.college-marquee__track {
    display: flex;
    width: max-content;
    animation: collegeSlide 24s linear infinite;
}

.college-marquee:hover .college-marquee__track {
    animation-play-state: paused;
}

.college-marquee__group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0 1.2rem;
}

.college-chip {
    flex: 0 0 auto;
    width: 120px;
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--app-surface-muted) 82%, var(--app-surface));
    border: 1px solid var(--app-border);
    padding: 0.65rem 0.55rem;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
}

.college-chip img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: grayscale(0.35);
}

.college-chip span {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--app-text-soft);
    text-align: center;
}

.college-marquee__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 3;
    pointer-events: none;
}

.college-marquee__fade--left {
    left: 0;
    background: linear-gradient(90deg, var(--app-surface), transparent);
}

.college-marquee__fade--right {
    right: 0;
    background: linear-gradient(270deg, var(--app-surface), transparent);
}

@keyframes collegeSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .college-chip {
        width: 102px;
    }

    .college-chip img {
        width: 46px;
        height: 46px;
    }
}

html[data-theme="dark"] .college-strip-section {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--app-bg)), var(--app-bg));
}

html[data-theme="dark"] .college-marquee {
    background: color-mix(in srgb, var(--app-surface) 88%, #0b1220);
}

html[data-theme="dark"] .college-chip {
    background: color-mix(in srgb, var(--app-surface-muted) 90%, #0b1220);
}

html[data-theme="dark"] .college-marquee__fade--left {
    background: linear-gradient(90deg, var(--app-surface), transparent);
}

html[data-theme="dark"] .college-marquee__fade--right {
    background: linear-gradient(270deg, var(--app-surface), transparent);
}

.text-indigo-600,
.hover\:text-indigo-600:hover {
    color: var(--brand) !important;
}

.text-indigo-700,
.hover\:text-indigo-700:hover {
    color: var(--brand-strong) !important;
}

.bg-indigo-600,
.hover\:bg-indigo-600:hover {
    background-color: var(--brand) !important;
}

.bg-indigo-700,
.hover\:bg-indigo-700:hover {
    background-color: color-mix(in srgb, var(--brand-strong) 85%, #000) !important;
}

.border-indigo-600 {
    border-color: var(--brand) !important;
}

.bg-indigo-50,
.hover\:bg-indigo-50:hover {
    background-color: color-mix(in srgb, var(--brand) 10%, #ffffff) !important;
}

/* Premium site header */
.site-header--premium {
    background: color-mix(in srgb, var(--app-surface) 88%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--app-border-soft);
    box-shadow: 0 8px 30px var(--app-shadow);
}

.site-nav a {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--app-text-muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--brand-strong);
}

.site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.88rem;
    color: #fff;
    background: var(--brand);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(41, 182, 76, 0.25);
}

.site-cta--sm {
    padding: 0.5rem 1rem;
}

.site-cta:hover {
    transform: translateY(-1px);
    background: var(--brand-strong);
}

.hero-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: color-mix(in srgb, var(--app-border) 50%, transparent);
    z-index: 8;
}

.hero-progress__bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    transition: width 0.15s linear;
}

.hero-slide-tag {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-strong);
    background: color-mix(in srgb, var(--brand) 12%, white);
}

.hero-predictor-mock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    width: min(26rem, 100%);
    padding: 1rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #d8e2ef;
    box-shadow: 0 18px 40px rgba(15, 39, 68, 0.12);
}

.hero-predictor-mock__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f2744;
    margin-bottom: 0.5rem;
}

.hero-predictor-mock__item {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5a6f8a;
    padding: 0.35rem 0;
}

.hero-predictor-mock__item.is-on {
    color: #0f2744;
    font-weight: 800;
}

.hero-predictor-mock__item.is-on::before {
    content: "● ";
    color: var(--brand);
    font-size: 0.65rem;
}

@keyframes heroSlidePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.hero-slide.is-active .hero-predictor-mock {
    animation: heroSlidePulse 4s ease-in-out infinite;
}

.predictor-showcase-section {
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(15, 39, 68, 0.06), transparent 55%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(41, 182, 76, 0.08), transparent 50%),
        var(--app-surface);
}

.predictor-showcase-header {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .predictor-showcase-header {
        grid-template-columns: 1fr 1.05fr;
        gap: 3rem;
    }
}

.predictor-showcase-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f2744;
    margin-top: 0.5rem;
}

.predictor-showcase-lead {
    margin-top: 1rem;
    max-width: 32rem;
    color: var(--app-text-muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

.predictor-showcase-features {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.predictor-showcase-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: var(--app-text);
}

.predictor-showcase-features [data-lucide] {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--brand);
}

.predictor-showcase-cta {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.88rem;
    color: #fff;
    background: linear-gradient(90deg, #0f2744, #2a5085);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 39, 68, 0.3);
}

.predictor-showcase-cta:hover {
    transform: translateY(-2px);
}

.predictor-showcase-preview {
    border-radius: 1.35rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fafbfd, #f0f4fa);
    border: 1px solid color-mix(in srgb, #0f2744 10%, var(--app-border));
    box-shadow: 0 24px 55px var(--app-shadow);
}

.predictor-showcase-preview__inner {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .predictor-showcase-preview__inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.15rem;
    }
}

.predictor-showcase-panel {
    background: var(--app-surface);
    border-radius: 0.9rem;
    padding: 0.85rem;
    border: 1px solid color-mix(in srgb, #0f2744 10%, var(--app-border));
}

.predictor-showcase-scroll {
    max-height: 160px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.predictor-showcase-btn {
    margin-top: 1.15rem;
    width: 100%;
}

.about-section {
    background: var(--app-bg);
}

.about-card {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.35rem;
    border: 1px solid var(--app-border-soft);
    background: var(--app-surface);
    box-shadow: 0 18px 45px var(--app-shadow);
}

.about-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--app-text);
    letter-spacing: -0.02em;
}

.about-text {
    margin-top: 1rem;
    color: var(--app-text-muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.feedbacks-section {
    background:
        radial-gradient(circle at top, rgba(41, 182, 76, 0.06), transparent 55%),
        var(--app-surface);
}

.feedbacks-header {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.feedbacks-title {
    margin-top: 0.5rem;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--app-text);
}

.feedbacks-lead {
    margin-top: 0.85rem;
    color: var(--app-text-muted);
    line-height: 1.6;
}

.feedbacks-grid {
    display: grid;
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .feedbacks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feedback-card {
    border-radius: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--app-border-soft);
    background: var(--app-surface);
    box-shadow: 0 20px 50px var(--app-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px var(--app-shadow-strong);
}

.feedback-card__video {
    position: relative;
    background: #0f172a;
}

.feedback-card__video::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.feedback-card__embed,
.feedback-card__placeholder {
    position: absolute;
    inset: 0;
}

.feedback-card__embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.feedback-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #0f2744 0%, #1a3d6b 50%, #0f2744 100%);
    color: rgba(255, 255, 255, 0.85);
}

.feedback-card__placeholder[hidden] {
    display: none;
}

.feedback-card__play {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.feedback-card__placeholder-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.feedback-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.feedback-card__name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--app-text);
    letter-spacing: -0.02em;
}

.feedback-card__college {
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--brand-strong);
    font-size: 0.95rem;
}

.feedback-card__branch {
    margin-top: 0.2rem;
    font-weight: 600;
    color: var(--app-text-muted);
    font-size: 0.9rem;
}

html[data-theme="dark"] .predictor-showcase-title {
    color: #e8eef8;
}

html[data-theme="dark"] .hero-predictor-mock {
    background: #1a2438;
    border-color: #33435f;
}

html[data-theme="dark"] .hero-predictor-mock__label {
    color: #dbe7fb;
}

html[data-theme="dark"] .predictor-showcase-preview {
    background: linear-gradient(180deg, #1a2438, #151d2e);
}

/* =====================================================
   PREMIUM PROMO BANNER  (ap-promo-*)
   Color palette: brand green (#29b64c / #1d7739)
   ===================================================== */

.ap-promo-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #0e3d1e 0%, #1d7739 45%, #29b64c 100%);
    padding: 0.5rem 1rem 0;
    color: #ffffff;
}

@media (min-width: 640px) {
    .ap-promo-banner {
        padding: 1rem 1.5rem 0;
    }
}

@media (min-width: 900px) {
    .ap-promo-banner {
        padding: 0.5rem 1.5rem 0;
    }
}

/* Glow blobs */
.ap-promo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.25;
}

.ap-promo-blob--tr {
    width: 26rem;
    height: 26rem;
    background: #29b64c;
    top: -6rem;
    right: -6rem;
    opacity: 0.18;
}

.ap-promo-blob--bl {
    width: 20rem;
    height: 20rem;
    background: #0e3d1e;
    bottom: -5rem;
    left: -4rem;
    opacity: 0.35;
}

/* Inner layout: ALWAYS 2-column — text left, photo right */
.ap-promo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 0.5rem;
    /* tight gap on mobile */
    /* CRITICAL: prevents grid children from overflowing */
    overflow: hidden;
}

/* CRITICAL: all grid children must have min-width:0
   Without this, content wider than the column bleeds out */
.ap-promo-copy,
.ap-promo-photo-wrap {
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .ap-promo-inner {
        gap: 1.5rem;
    }
}

@media (min-width: 900px) {
    .ap-promo-inner {
        grid-template-columns: 1.1fr 0.9fr;
        /* photo column gets a bit more room */
        gap: 3rem;
        overflow: visible;
        align-items: center;
        /* centers text block vertically, removing top gap */
    }

    .ap-promo-copy,
    .ap-promo-photo-wrap {
        overflow: visible;
    }
}

/* ── LEFT copy ── */
.ap-promo-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    /* tighter on mobile */
    padding-bottom: 2rem;
    /* breathing room above bottom edge */
}

@media (min-width: 640px) {
    .ap-promo-copy {
        gap: 1.2rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 900px) {
    .ap-promo-copy {
        gap: 1.4rem;
        padding-bottom: 4rem;
    }
}

.ap-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.6rem;
    /* smaller on mobile */
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4f5df;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (min-width: 640px) {
    .ap-promo-badge {
        font-size: 0.72rem;
        padding: 0.38rem 0.9rem;
    }
}

@media (min-width: 900px) {
    .ap-promo-badge {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }
}

.ap-promo-heading {
    font-size: 1.35rem;
    /* mobile first */
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 480px) {
    .ap-promo-heading {
        font-size: 1.65rem;
    }
}

@media (min-width: 640px) {
    .ap-promo-heading {
        font-size: 2.1rem;
        letter-spacing: -0.035em;
    }
}

@media (min-width: 900px) {
    .ap-promo-heading {
        font-size: clamp(2.4rem, 3.5vw, 3.8rem);
    }
}

.ap-promo-heading--accent {
    color: #a7f3c0;
}

/* Counters row */
.ap-promo-stats {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    /* tighter on mobile */
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    width: fit-content;
    max-width: 100%;
}

@media (min-width: 640px) {
    .ap-promo-stats {
        gap: 1.2rem;
        padding: 1rem 1.25rem;
        border-radius: 1rem;
    }
}

@media (min-width: 900px) {
    .ap-promo-stats {
        gap: 1.6rem;
        padding: 1.25rem 1.5rem;
        border-radius: 1.15rem;
    }
}

.ap-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.ap-stat-number {
    font-size: 1.5rem;
    /* mobile */
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 28px rgba(41, 182, 76, 0.5);
    transition: color 0.2s;
}

@media (min-width: 480px) {
    .ap-stat-number {
        font-size: 1.75rem;
    }
}

@media (min-width: 640px) {
    .ap-stat-number {
        font-size: 2.1rem;
    }
}

@media (min-width: 900px) {
    .ap-stat-number {
        font-size: 2.75rem;
    }
}

.ap-stat-label {
    font-size: 0.55rem;
    /* mobile */
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (min-width: 480px) {
    .ap-stat-label {
        font-size: 0.62rem;
    }
}

@media (min-width: 640px) {
    .ap-stat-label {
        font-size: 0.7rem;
    }
}

@media (min-width: 900px) {
    .ap-stat-label {
        font-size: 0.78rem;
    }
}

.ap-stat-divider {
    width: 1px;
    height: 2rem;
    /* shorter on mobile */
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .ap-stat-divider {
        height: 2.5rem;
    }
}

@media (min-width: 900px) {
    .ap-stat-divider {
        height: 3rem;
    }
}

.ap-promo-desc {
    font-size: 0.78rem;
    /* mobile */
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    font-weight: 500;
}

@media (min-width: 480px) {
    .ap-promo-desc {
        font-size: 0.88rem;
    }
}

@media (min-width: 640px) {
    .ap-promo-desc {
        font-size: 0.98rem;
    }
}

@media (min-width: 900px) {
    .ap-promo-desc {
        font-size: 1.1rem;
    }
}

.ap-promo-desc strong {
    color: #ffffff;
    font-weight: 800;
}

/* CTA buttons */
.ap-promo-actions {
    display: flex;
    flex-direction: column;
    /* stack on mobile */
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .ap-promo-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.9rem;
        width: auto;
    }
}

.ap-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    /* compact on mobile */
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.78rem;
    /* mobile */
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .ap-promo-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        border-radius: 0.85rem;
        gap: 0.5rem;
    }
}

@media (min-width: 900px) {
    .ap-promo-btn {
        font-size: 0.97rem;
        padding: 0.85rem 1.75rem;
        border-radius: 0.95rem;
    }
}

.ap-promo-btn--primary {
    background: #ffffff;
    color: #1d7739;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.ap-promo-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    background: #f0fdf4;
}

.ap-promo-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.ap-promo-btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
}

.ap-promo-btn--whatsapp {
    background: #25D366;
    color: #ffffff;
    border: 2px solid transparent;
}

.ap-promo-btn--whatsapp:hover {
    transform: translateY(-2px);
    background: #1eb956;
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.3);
}

/* Visibility helpers */
@media (max-width: 899px) {
    .ap-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 900px) {
    .ap-hide-desktop {
        display: none !important;
    }
}

/* Call button placed under photo (right side) */
.ap-promo-call-right {
    margin-top: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 999px;
    /* pill shape to match name tag */
    width: auto;
    min-width: 160px;
    /* enough width to align well with name tag */
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    /* exactly match name tag bg */
    border: 1px solid rgba(255, 255, 255, 0.22);
    /* exactly match name tag border */
    backdrop-filter: blur(10px);
    /* match name tag blur */
}

@media (min-width: 640px) {
    .ap-promo-call-right {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        min-width: 180px;
    }
}

@media (min-width: 900px) {
    .ap-promo-call-right {
        margin-top: 0; /* Let flex alignment handle it */
        margin-bottom: 0;
        font-size: 0.9rem;
        padding: 0.7rem 1.4rem;
        min-width: 210px;
    }
}

/* ── RIGHT photo — full person, no circle crop ── */
.ap-promo-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* center instead of bottom to shift up */
    align-self: center;
    /* shift up from bottom */
    gap: 0.6rem;
    height: 100%;
    padding-bottom: 1rem;
    /* lift it from the bottom edge */
}

/* Wrapper — no clipping, just glow */
.ap-promo-photo-ring {
    position: relative;
    border-radius: 0;
    /* no round crop */
    background: none;
    animation: none;
    box-shadow: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Frame — transparent, no overflow clip */
.ap-promo-photo-frame {
    width: 100%;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    position: relative;
}

/* Photo — full image, sits on baseline */
.ap-promo-photo-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    /* never taller than viewport */
    object-fit: contain;
    object-position: bottom center;
    display: block;
    /* soft drop-shadow so person pops from gradient bg */
    filter: drop-shadow(0 -4px 18px rgba(0, 0, 0, 0.18)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    transition: transform 0.5s ease;
}

.ap-promo-photo-ring:hover .ap-promo-photo-img {
    transform: scale(1.03) translateY(-4px);
}

/* Contact Row (Name Tag + Call Button) */
.ap-promo-contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

@media (min-width: 900px) {
    .ap-promo-contact-row {
        flex-direction: row;
        justify-content: center;
        align-items: stretch; /* Forces equal height for both items */
        gap: 0.8rem;
    }
}

/* Name tag below photo */
.ap-promo-name-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    backdrop-filter: blur(10px);
    margin-bottom: 0.75rem;
}

.ap-promo-name {
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.ap-promo-role {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a7f3c0;
}

@media (min-width: 640px) {
    .ap-promo-name {
        font-size: 0.88rem;
    }

    .ap-promo-role {
        font-size: 0.68rem;
    }

    .ap-promo-name-tag {
        padding: 0.4rem 1.1rem;
    }
}

@media (min-width: 900px) {

    /* Photo wrap: stretch to fill full grid height, center the photo */
    .ap-promo-photo-wrap {
        align-self: stretch;
        /* fill full column height */
        justify-content: center;
        /* center photo vertically */
        padding-bottom: 1.5rem;
    }

    /* Let the frame fill the full column width naturally */
    .ap-promo-photo-frame {
        max-width: 100%;
        /* no cap — fills the column */
    }

    /* Taller photo on desktop */
    .ap-promo-photo-img {
        max-height: 68vh;
        transform: translateY(-2.5rem);
        /* Shift photo significantly more upside on desktop */
    }

    /* Bigger name tag on desktop */
    .ap-promo-name-tag {
        padding: 0.7rem 2rem;
        gap: 0.3rem;
        margin-bottom: 0; /* Let flex gap handle spacing on desktop */
    }

    .ap-promo-name {
        font-size: 1.2rem;
        /* visibly bigger */
    }

    .ap-promo-role {
        font-size: 0.82rem;
    }
}

/* Dark mode adjustments */
html[data-theme="dark"] .ap-promo-banner {
    background: linear-gradient(130deg, #071a0d 0%, #103d1f 45%, #1d7739 100%);
}

/* =====================================================
   PREDICTOR SHOWCASE PANEL ENHANCEMENTS  (psp-*)
   ===================================================== */

/* Top header bar inside the preview card */
.psp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid color-mix(in srgb, #0f2744 10%, var(--app-border));
}

.psp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, white);
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.psp-subtitle {
    font-size: 0.75rem;
    color: var(--app-text-soft);
    font-weight: 600;
}

/* Panel icon + heading row */
.psp-panel-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
}

.psp-panel-header svg {
    color: var(--brand);
    flex-shrink: 0;
}

.psp-panel-header .preference-heading {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #0f2744;
}

/* Highlight for selected options */
.preference-option.psp-selected {
    background: color-mix(in srgb, var(--brand) 9%, white);
    border-radius: 0.45rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.preference-option.psp-selected .preference-option__text {
    color: var(--brand-strong);
    font-weight: 800;
}

/* Result hint bar */
.psp-result-hint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--brand) 7%, white);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--app-border));
    font-size: 0.82rem;
    color: var(--app-text-muted);
    font-weight: 600;
}

.psp-result-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(41, 182, 76, 0.5);
    animation: pspDotPulse 2s ease-in-out infinite;
}

@keyframes pspDotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(41, 182, 76, 0.45);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(41, 182, 76, 0);
    }
}

.psp-result-hint strong {
    color: var(--brand-strong);
}

/* Dark mode for new predictor bits */
html[data-theme="dark"] .psp-panel-header .preference-heading {
    color: #dbe7fb;
}

html[data-theme="dark"] .psp-badge {
    background: rgba(41, 182, 76, 0.18);
    color: #6ee7a0;
}

html[data-theme="dark"] .psp-result-hint {
    background: rgba(41, 182, 76, 0.08);
    border-color: rgba(41, 182, 76, 0.22);
    color: var(--app-text-muted);
}

html[data-theme="dark"] .preference-option.psp-selected {
    background: rgba(41, 182, 76, 0.14);
}

html[data-theme="dark"] .psp-header {
    border-color: #33435f;
}

/* =====================================================
   MOBILE-ONLY PROMO BANNER OVERRIDES  (max-width 639px)
   Target: phone view — clean rectangle, no overflow
   ===================================================== */
@media (max-width: 639px) {

    /* 1. Hide the long paragraph — frees up vertical space */
    .ap-promo-desc {
        display: none !important;
    }

    /* 2. Smaller heading so it fits on 2 lines comfortably */
    .ap-promo-heading {
        font-size: 1.05rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
    }

    /* 3. Badge pill — single line, slightly smaller */
    .ap-promo-badge {
        font-size: 0.52rem !important;
        padding: 0.25rem 0.55rem !important;
        letter-spacing: 0.06em !important;
    }

    /* 4. Stats row — horizontal, compact, no overflow */
    .ap-promo-stats {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.55rem !important;
        padding: 0.55rem 0.75rem !important;
        border-radius: 0.7rem !important;
        width: auto !important;
        max-width: 100% !important;
    }

    /* 5. Counter numbers — noticeably smaller */
    .ap-stat-number {
        font-size: 1.15rem !important;
        letter-spacing: -0.03em !important;
    }

    /* 6. Counter labels — tiny, uppercase, compact */
    .ap-stat-label {
        font-size: 0.46rem !important;
        line-height: 1.25 !important;
        letter-spacing: 0.04em !important;
    }

    /* 7. Divider — shorter */
    .ap-stat-divider {
        height: 1.5rem !important;
    }

    /* 8. Buttons — full-width, compact height */
    .ap-promo-actions {
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
        margin-top: 0.2rem !important;
    }

    .ap-promo-btn {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.5rem !important;
        /* tighter horizontal padding so texts fit */
        border-radius: 0.6rem !important;
        width: 100% !important;
        /* perfect full width for both packages and whatsapp */
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .ap-promo-call-right {
        font-size: 0.72rem !important;
        padding: 0.45rem 0.6rem !important;
        margin-top: 0.2rem !important;
        margin-bottom: 0.8rem !important;
        width: 100% !important;
        max-width: 160px !important;
        /* perfectly matches column width without overflow */
        min-width: 0 !important;
        border-radius: 999px !important;
    }

    /* 9. Tighten the copy column gap */
    .ap-promo-copy {
        gap: 0.7rem !important;
        padding-bottom: 2.5rem !important;
    }
}