/* =====================================================================
   CV Maker page — page-only stylesheet.
   Loaded AFTER css/about-us.css, which already ships the guest-mode base
   (tokens, typography, buttons, .wrap, .sec, .stats, .vgrid, .ctaband)
   plus the nav/footer rules used by partials.nav / partials.footer.
   Nothing here overrides those shared rules — every selector below is
   either a new cvm-* class or a block that the guest base does not define
   (.reveal / .faq-*, both driven by the existing partials.scripts JS).
   ===================================================================== */

/* ---------- scroll reveal (IntersectionObserver lives in partials.scripts) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media(prefers-reduced-motion:reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- hero ---------- */
.cvm-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.cvm-hero-copy h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin: 16px 0 14px;
}

.cvm-hero-copy h1 em {
    font-style: normal;
    color: var(--green-d);
}

.cvm-lede {
    font-size: 18px;
    color: var(--muted);
    max-width: 48ch;
}

.cvm-ticks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}

.cvm-tick {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
}

.cvm-tick svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    padding: 4px;
    border-radius: 50%;
    color: var(--green-d);
    background: var(--green-l);
}

/* start card */
.cvm-start {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-3);
    padding: 30px;
}

.cvm-start-h {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.cvm-start-h .n {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--green-l);
    color: var(--green-d);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 14px;
}

.cvm-start-h b {
    font-family: var(--disp);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.02em;
}

.cvm-start > p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.cvm-btn-full {
    width: 100%;
}

.cvm-start .cvm-btn-full + .cvm-btn-full {
    margin-top: 11px;
}

.cvm-start-note {
    font-size: 13.5px;
    color: var(--muted);
    text-align: center;
    margin-top: 18px;
}

.cvm-start-note a {
    color: var(--green-d);
    font-weight: 700;
}

.cvm-start-note a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* stat band tweaks — the shared .stat b is sized for short numbers only */
.cvm-stats .stat b {
    font-size: 30px;
    overflow-wrap: anywhere;
}

/* ---------- prose blocks ---------- */
.cvm-narrow {
    max-width: 780px;
}

.cvm-head {
    margin-bottom: 34px;
}

.cvm-head h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 12px 0 14px;
}

.cvm-p {
    font-size: 17px;
    color: var(--ink-2);
    line-height: 1.72;
    margin-bottom: 16px;
}

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

.cvm-p a {
    color: var(--green-d);
    font-weight: 700;
}

.cvm-p a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- how it works ---------- */
.cvm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cvm-step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--sh-1);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.cvm-step:hover {
    transform: translateY(-4px);
    border-color: var(--green-m);
    box-shadow: var(--sh-2);
}

.cvm-step .num {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--green-l);
    color: var(--green-d);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.cvm-step h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.cvm-step p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- free vs paid ---------- */
.cvm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 26px;
}

.cvm-pane {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--sh-1);
}

.cvm-pane.paid {
    background: var(--soft);
}

.cvm-pane-h {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cvm-pane-h h3 {
    font-size: 20px;
}

.cvm-pane > p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.cvm-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.cvm-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 11px;
}

.cvm-list li:last-child {
    margin-bottom: 0;
}

.cvm-list li svg {
    position: absolute;
    left: 0;
    top: 3px;
    width: 19px;
    height: 19px;
    color: var(--green-d);
}

.cvm-pane.paid .cvm-list li svg {
    color: var(--amber);
}

.cvm-fine {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- template use-case cards (reuses .vgrid / .vcard) ---------- */
.cvm-vcard-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--soft);
    border-radius: 999px;
    padding: 5px 11px;
    margin-top: 14px;
}

/* ---------- inline CTA strip ---------- */
.cvm-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 34px;
    padding: 18px 22px;
    background: var(--green-l);
    border: 1px solid var(--green-m);
    border-radius: var(--r);
}

.cvm-cta span {
    font-size: 15px;
    font-weight: 700;
    color: var(--green-d);
    line-height: 1.45;
}

/* ---------- related links ---------- */
.cvm-rel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.cvm-rel a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--green-d);
    background: var(--green-l);
    border: 1px solid var(--green-m);
    border-radius: 999px;
    padding: 10px 18px;
    transition: background .15s, border-color .15s, transform .15s;
}

.cvm-rel a:hover {
    background: var(--card);
    border-color: var(--green-d);
    transform: translateY(-2px);
}

/* ---------- FAQ accordion (toggle handled by partials.scripts) ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 13px;
    overflow: hidden;
    transition: .2s;
}

.faq-item:hover {
    border-color: var(--green-m);
}

.faq-item.open {
    border-color: var(--green-m);
    box-shadow: var(--sh-2);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--sans);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
}

.faq-q:hover {
    color: var(--green-d);
}

.faq-q .pm {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--soft);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 19px;
    font-weight: 500;
    color: var(--green-d);
    transition: .25s;
}

.faq-item.open .pm {
    transform: rotate(135deg);
    background: var(--green);
    color: #fff;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.faq-a div {
    padding: 0 24px 22px;
}

.faq-item.open .faq-a {
    max-height: 460px;
}

/* ---------- responsive ---------- */
@media(max-width:940px) {
    .cvm-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .cvm-lede {
        max-width: none;
    }

    .cvm-steps {
        grid-template-columns: 1fr;
    }

    .cvm-split {
        grid-template-columns: 1fr;
    }

    .cvm-stats .stat b {
        font-size: 26px;
    }
}

@media(max-width:600px) {
    .cvm-start {
        padding: 22px;
    }

    .cvm-step {
        padding: 22px;
    }

    .cvm-pane {
        padding: 22px;
    }

    .cvm-p {
        font-size: 16px;
    }

    .cvm-cta {
        flex-direction: column;
        gap: 13px;
        padding: 18px 16px;
    }

    .cvm-cta .btn {
        width: 100%;
    }

    .cvm-rel a {
        width: 100%;
        justify-content: center;
    }

    .faq-q {
        font-size: 15px;
        padding: 17px 16px;
    }

    .faq-a div {
        padding: 0 16px 18px;
    }
}
