/* home-v1.css — SEO landing sections below the hero (home.html)
   Style: playful startup look (Canva/Nintendo-ish) on the site palette —
   green rgb(53,171,106), red-envelope accents, chunky rounded cards.
   To update: edit here, bump filename to -v2, update the <link> in home.html. */

.hl {
    max-width: 90%;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}
@media (min-width: 768px) {
    .hl {
        max-width: 72%;
    }
}

.hl-section {
    margin: 3.5rem auto 0;
}

/* tighter gap between the hero image and the first section title */
.hl-section:first-child {
    margin-top: 1.75rem;
}

.hl-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
    margin: 0 0 1rem;
}

.hl-intro,
.hl-outro {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.hl-outro {
    margin-top: 1.5rem;
    font-weight: 600;
}

/* feature cards */
.hl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.hl-card {
    border: 1.7px solid rgb(53, 171, 106);
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 1.5rem;
    text-align: center;
}

.hl-card h3 {
    margin: 0.6rem 0 0.5rem;
    font-size: 1.15rem;
}

.hl-card p {
    margin: 0;
    line-height: 1.55;
}

.hl-icon {
    height: 2.4rem;
    width: auto;
}

/* course steps — numbered green coins instead of plain list markers */
.hl-steps {
    max-width: 38rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: hlstep;
    line-height: 1.7;
}

.hl-steps li {
    counter-increment: hlstep;
    margin-bottom: 0.7rem;
    padding-left: 3rem;
    position: relative;
}

.hl-steps li::before {
    content: counter(hlstep);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgb(53, 171, 106);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); /* coin edge */
}

/* comparison table */
.hl-table-wrap {
    overflow-x: auto; /* table scrolls inside itself on small screens */
    -webkit-overflow-scrolling: touch;
}

.hl-table {
    border-collapse: separate; /* collapse would break the border-radius */
    border-spacing: 0;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1.7px solid rgb(53, 171, 106);
    border-radius: 1rem;
    overflow: hidden; /* keep radius on corner cells */
    min-width: 34rem;
}

.hl-table th,
.hl-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e4e4e4;
    text-align: center;
    font-size: 0.95rem;
}

.hl-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.hl-table tbody tr:last-child td {
    border-bottom: none;
}

.hl-table .hl-us {
    background-color: rgba(53, 171, 106, 0.08);
    font-weight: 700;
}

.hl-yes {
    color: rgb(37, 132, 80);
}

.hl-some {
    color: #a07714;
}

.hl-no {
    color: #b0483f;
}

/* faq — cards with a rotating + marker */
.hl-faq {
    max-width: 44rem;
    margin: 0 auto;
}

.hl-faq details {
    border: 2px solid rgba(53, 171, 106, 0.55);
    border-radius: 1.25rem;
    background-color: #ffffff;
    margin-bottom: 0.8rem;
    padding: 0.9rem 1.2rem;
    transition: border-color 0.15s ease;
}

.hl-faq details:hover,
.hl-faq details[open] {
    border-color: rgb(53, 171, 106);
}

.hl-faq summary {
    cursor: pointer;
    font-weight: 600;
    line-height: 1.5;
    list-style: none; /* hide default triangle */
    position: relative;
    padding-right: 2rem;
}

.hl-faq summary::-webkit-details-marker {
    display: none;
}

.hl-faq summary::after {
    content: "+";
    position: absolute;
    right: 0.2rem;
    top: 50%;
    translate: 0 -50%;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(53, 171, 106);
    transition: rotate 0.2s ease;
}

.hl-faq details[open] summary::after {
    rotate: 45deg; /* + becomes × */
}

.hl-faq details p {
    margin: 0.8rem 0 0.2rem;
    line-height: 1.6;
}

/* tinted gradient panels: reviews carousel + closing call to action */
.hl-reviews,
.hl-cta {
    text-align: center;
    background: linear-gradient(145deg, rgba(53, 171, 106, 0.12), rgba(211, 74, 54, 0.1));
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
}

/* on home the gradient panel is the frame — the carousel box itself goes borderless */
.hl-reviews .testimonials-cont {
    border: none;
    box-shadow: none;
    background: transparent;
}

.hl-cta .hl-intro {
    margin-bottom: 1.5rem;
}

.hl-cta .hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- blog articles in the landing design language --- */
/* standalone container: replaces .lesson-cont so no lesson styling (gradient
   heading bars, note colors) leaks into articles; same geometry as lessons */
.hl-article {
    line-height: 1.7;
    background-color: white;
    color: black;
    margin: 0 auto;
    max-width: 92%; /* mobile */
}
@media (min-width: 1000px) {
    .hl-article {
        max-width: 75%;
    }
}
@media (min-width: 1275px) {
    .hl-article {
        max-width: 65%;
    }
}

.hl-article h1 {
    text-align: center;
    font-size: clamp(1.8rem, 2.4vw + 0.96rem, 2.4rem); /* ~20% above the h2 scale */
    margin: 1rem 0 1rem;
}

.hl-article p {
    margin: 0.7rem 0;
}

/* h2s match the homepage section titles; strong text dark instead of lesson-blue */
.hl-article h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
}

.hl-article strong {
    color: rgb(45, 45, 45);
}

/* prose flows in a centered column: readable measure, no lopsided whitespace */
.hl-article > p,
.hl-article > ul {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.hl-article > h2 {
    margin: 2.5rem 0 1rem;
}

/* each reviewed tool sits in its own card, text left-aligned for reading */
.hl-toolcard {
    border: 1.7px solid rgb(53, 171, 106);
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem auto;
    max-width: 46rem;
}

.hl-toolcard h2 {
    margin: 0 0 0.75rem;
}

.hl-toolcard ul {
    padding-left: 1.2rem;
}

.hl-toolcard p:last-child {
    margin-bottom: 0;
}

/* disclosure note on the gradient panel */
.hl-article .note {
    max-width: 46rem;
    margin: 1.25rem auto;
    background: linear-gradient(145deg, rgba(53, 171, 106, 0.12), rgba(211, 74, 54, 0.1));
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

/* closing panel inherits .hl-cta (gradient, centered); keep it in the article column */
.hl-article .hl-cta {
    max-width: 46rem;
    margin: 2rem auto 0;
}

/* panel padding provides the spacing above; drop the h2's own top margin (like home) */
.hl-article .hl-cta h2 {
    margin: 0 0 1rem;
}

/* calm mode: no spins for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hl-faq summary::after {
        transition: none;
    }
}
