/*
 * pn-how-it-works.css: /how-it-works (views/frontend/frontend_how_it_works.pug, 2026-11-24). The frame (ink hero,
 * sheet, steps row, feature cards, FAQ, lime panel) comes from pn-system.css and pn-planners.css (body.pp-page); this
 * file adds the hero text link, the step label, the video in a picture panel and the hero picture without lime.
 * Scoped to body.hw-page. Colours from the pn-system tokens. Bump ?v= on the link with every edit.
 */

/* ---------- Hero ---------- */
body.hw-page .pns-pagehero__cta {
    align-items: center;
}

body.hw-page a.hw-hero__link {
    color: var(--pns-on-ink);
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.hw-page a.hw-hero__link:hover { color: #ffffff; }

body.hw-page .hw-hero__visual > .pnv { width: 100%; }

/* No lime inside the hero picture: the lime button is the only green on the first screen (PAGE-PATTERN.md). */
body.hw-page .hw-hero__visual .pnv-tick circle { fill: var(--pns-ink); }
body.hw-page .hw-hero__visual .pnv-tick path { stroke: #ffffff; }
body.hw-page .hw-hero__visual .pnv-chip--ai::before { background: #ffffff; }
body.hw-page .hw-hero__visual .pnv-chip--pub { background: var(--pns-mist); color: var(--pns-text); }
body.hw-page .hw-hero__visual .pnv-thumb--lime { background: var(--pns-tint-sand); }

/* ---------- Sheet ---------- */
body.hw-page .pp-body .pns-w > .pp-steps:first-child { margin-top: 0; }

body.hw-page .hw-tour {
    margin-top: clamp(48px, 5vw, 72px);
    scroll-margin-top: 96px;
}

body.hw-page article.hw-step { scroll-margin-top: 96px; }

body.hw-page p.hw-step__label {
    margin: 0 0 10px !important;
    color: var(--pns-text-3) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

body.hw-page .hw-faq { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Video in a picture panel (a step with `video` in app/content/how-it-works.js) ---------- */
body.hw-page video.hw-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: var(--pns-ink);
    object-fit: cover;
}

body.hw-page .pns-feature.has-video .pns-feature__visual,
body.hw-page .hw-hero__visual.has-video {
    min-height: 0;
    padding: clamp(10px, 1.2vw, 16px);
}

body.hw-page .hw-hero__visual.has-video { padding: 0; }

@media (max-width: 899px) {
    body.hw-page .pns-feature.has-video .pns-feature__visual { padding: 8px; }
}
