/* =========================================================
   SkoolWisely: Parents & Guardians section
   Paste at the end of styles.css (or load after it).
   Uses the template's own tokens, so light/dark mode both work.
   ========================================================= */

/* ---------- Hero: small link for parents under the buttons ---------- */
.parents-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-start: 1.25rem;
    font-size: 0.95rem;
    color: var(--default-text-color);
    text-decoration: none;
}
.parents-hero-link i {
    font-size: 1.15rem;
    color: var(--primary-color);
}
.parents-hero-link strong {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.parents-hero-link:hover strong,
.parents-hero-link:focus-visible strong {
    text-decoration-thickness: 2px;
}

/* ---------- Section shell ---------- */
.landing-body .section.parents-section {
    background-color: rgba(var(--primary-rgb), 0.06);
    border-block: 1px solid rgba(var(--primary-rgb), 0.12);
    padding-block: 5rem;
    scroll-margin-top: 4.5rem;
}
.parents-section .heading-subtitle {
    display: inline-block;
}
.parents-title {
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-block: 1rem 1rem;
    max-width: 17ch;
    color: var(--default-text-color);
}
.parents-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 46ch;
    margin-block-end: 2rem;
}

/* ---------- Lead feature: saving ---------- */
.parents-save {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--custom-white);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 1.1rem;
    margin-block-end: 1.5rem;
    max-width: 34rem;
}
.parents-save h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-block-end: 0.25rem;
}
.parents-save p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}
.parents-save .parents-math {
    display: inline-block;
    margin-block-start: 0.6rem;
    font-weight: 600;
    color: var(--default-text-color);
    background: rgba(var(--success-rgb), 0.14);
    border-radius: 0.4rem;
    padding: 0.15rem 0.55rem;
}

/* ---------- Other features: compact 2x2 ---------- */
.parents-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
    max-width: 34rem;
}
.parents-features li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.parents-features h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-block-end: 0.15rem;
}
.parents-features p {
    margin: 0;
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.parents-icon {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
    font-size: 1.25rem;
}
.parents-save .parents-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    background: rgba(var(--success-rgb), 0.16);
    color: rgb(var(--success-rgb));
}

/* ---------- Google Play button ---------- */
.parents-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.6rem 1.35rem 0.6rem 1rem;
    text-decoration: none;
    line-height: 1.1;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.btn-play i {
    font-size: 1.9rem;
}
.btn-play span {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 600;
}
.btn-play small {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.85;
}
.btn-play:hover,
.btn-play:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}
.btn-play:focus-visible,
.parents-app-bar a:focus-visible,
.parents-app-bar button:focus-visible,
.parents-hero-link:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.6);
    outline-offset: 3px;
}
.parents-cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- QR code (desktop only) ---------- */
.parents-qr {
    align-items: center;
    gap: 1rem;
    margin-block-start: 1.5rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    background: var(--custom-white);
    border: 1px dashed rgba(var(--primary-rgb), 0.35);
    border-radius: 1rem;
    max-width: 26rem;
}
.parents-qr-code {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    padding: 8px;
    background: #fff; /* stays white in dark mode so phones can scan it */
    color: #1e1b2e;
    border-radius: 0.6rem;
}
.parents-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}
.parents-qr p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-muted);
}
.parents-qr p strong {
    color: var(--default-text-color);
}

/* ---------- Phone mockup ---------- */
.parents-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding-block: 1rem;
}
.parents-phone-wrap::before {
    /* soft halo behind the phone */
    content: "";
    position: absolute;
    width: min(26rem, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--primary-rgb), 0.28),
        transparent 68%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.parents-phone {
    position: relative;
    width: 300px;
    max-width: 100%;
    background: #1e1b2e;
    border-radius: 2.6rem;
    padding: 0.75rem;
    box-shadow: 0 30px 60px -20px rgba(30, 27, 46, 0.55);
}
.parents-screen {
    background: var(--custom-white);
    color: var(--default-text-color);
    border-radius: 2rem;
    padding: 1.1rem 1rem 1.25rem;
    overflow: hidden;
    font-size: 0.8rem;
}
.parents-notch {
    width: 5.5rem;
    height: 1.2rem;
    background: #1e1b2e;
    border-radius: 1rem;
    margin: -0.35rem auto 0.9rem;
}
.parents-screen-greet {
    color: var(--text-muted);
    margin-block-end: 0.1rem;
}
.parents-screen-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-block-end: 0.9rem;
}
.parents-wallet {
    background: var(--primary-color);
    color: #fff;
    border-radius: 1.1rem;
    padding: 1rem;
    margin-block-end: 0.9rem;
}
.parents-wallet-label {
    opacity: 0.85;
    font-size: 0.75rem;
}
.parents-wallet-amount {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-block: 0.15rem 0.1rem;
}
.parents-wallet-goal {
    font-size: 0.75rem;
    opacity: 0.9;
}
.parents-progress {
    height: 0.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.25);
    margin-block: 0.7rem 0.55rem;
    overflow: hidden;
}
.parents-progress span {
    display: block;
    height: 100%;
    width: 75%;
    border-radius: inherit;
    background: #fff;
    transform-origin: left center;
    animation: parents-fill 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
@keyframes parents-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}
.parents-wallet-next {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    opacity: 0.9;
}
.parents-kids-title {
    font-weight: 600;
    margin-block-end: 0.45rem;
}
.parents-kid {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-block-end: 1px solid var(--default-border);
}
.parents-kid:last-of-type {
    border-block-end: 0;
}
.parents-kid-avatar {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.7rem;
    background: rgba(var(--secondary-rgb), 0.15);
    color: rgb(var(--secondary-rgb));
    flex-shrink: 0;
}
.parents-kid:nth-of-type(2) .parents-kid-avatar {
    background: rgba(var(--warning-rgb), 0.18);
    color: #b97700;
}
.parents-kid-info {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.parents-kid-info strong {
    display: block;
    font-size: 0.8rem;
}
.parents-kid-info span {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.parents-status {
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 1rem;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}
.parents-status.is-paid {
    background: rgba(var(--success-rgb), 0.16);
    color: #13894f;
}
.parents-status.is-due {
    background: rgba(var(--warning-rgb), 0.2);
    color: #9a6300;
}
.parents-pay-btn {
    display: block;
    text-align: center;
    background: var(--default-text-color);
    color: var(--custom-white);
    font-weight: 600;
    border-radius: 0.8rem;
    padding: 0.6rem;
    margin-block-start: 0.8rem;
}

/* Floating receipt card beside the phone */
.parents-receipt {
    position: absolute;
    right: max(0rem, calc(50% - 250px));
    bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--custom-white);
    color: var(--default-text-color);
    border: 1px solid var(--default-border);
    border-radius: 0.9rem;
    padding: 0.7rem 0.9rem;
    box-shadow: 0 14px 30px -12px rgba(30, 27, 46, 0.35);
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 14rem;
}
.parents-receipt i {
    font-size: 1.5rem;
    color: rgb(var(--success-rgb));
}
.parents-receipt span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* ---------- How it works ---------- */
.parents-steps {
    list-style: none;
    counter-reset: parent-step;
    padding: 0;
    margin: 4rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.parents-steps li {
    counter-increment: parent-step;
    position: relative;
    padding-block-start: 1.25rem;
    border-block-start: 2px solid rgba(var(--primary-rgb), 0.25);
}
.parents-steps li::before {
    content: counter(parent-step);
    position: absolute;
    top: -1rem;
    left: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--primary-color);
    color: #fff;
}
.parents-steps h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-block: 0.75rem 0.25rem;
}
.parents-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.parents-steps-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 4rem 0 0;
}
.parents-steps-title + .parents-steps {
    margin-top: 2.25rem;
}

/* ---------- Link from the "For Parents" card ---------- */
.parents-card-link {
    display: inline-block;
    margin-block-start: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Mobile download bar ---------- */
.parents-app-bar {
    display: none;
}
@media (max-width: 991.98px) {
    .parents-app-bar {
        position: fixed;
        z-index: 1040;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: #1e1b2e;
        color: #fff;
        border-radius: 1rem;
        padding: 0.6rem 0.6rem 0.6rem 0.9rem;
        box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
    }
    .parents-app-bar[hidden] {
        display: none;
    }
    .parents-app-bar-text {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .parents-app-bar-text strong {
        display: block;
        font-size: 0.9rem;
    }
    .parents-app-bar-text span {
        opacity: 0.75;
    }
    .parents-app-bar a {
        background: var(--primary-color);
        color: #fff;
        font-weight: 600;
        border-radius: 0.7rem;
        padding: 0.55rem 0.9rem;
        text-decoration: none;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    .parents-app-bar button {
        background: transparent;
        border: 0;
        color: #fff;
        opacity: 0.7;
        font-size: 1.25rem;
        line-height: 1;
        padding: 0.25rem;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .parents-title,
    .parents-lead {
        max-width: none;
    }
    .parents-receipt {
        right: 0.5rem;
    }
}
@media (max-width: 767.98px) {
    .landing-body .section.parents-section {
        padding-block: 3.5rem;
    }
    .parents-steps {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}
@media (max-width: 575.98px) {
    .parents-features {
        grid-template-columns: 1fr;
    }
    .parents-receipt {
        display: none;
    }
    .parents-phone {
        width: 270px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .parents-progress span {
        animation: none;
    }
    .btn-play {
        transition: none;
    }
    .btn-play:hover {
        transform: none;
    }
}

/* ---------- Dark mode touches ---------- */
[data-theme-mode="dark"] .landing-body .section.parents-section {
    background-color: rgba(var(--primary-rgb), 0.08);
}
[data-theme-mode="dark"] .parents-phone {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    outline: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme-mode="dark"] .parents-status.is-paid {
    color: rgb(var(--success-rgb));
}
[data-theme-mode="dark"] .parents-status.is-due {
    color: rgb(var(--warning-rgb));
}
[data-theme-mode="dark"] .parents-kid:nth-of-type(2) .parents-kid-avatar {
    color: rgb(var(--warning-rgb));
}
[data-theme-mode="dark"] .parents-pay-btn {
    background: var(--primary-color);
    color: #fff;
}
