/* ==========================================================================
   Afford IT – lead magnet pages (/resources/)
   --------------------------------------------------------------------------
   Only what style.v2.css does not already provide: the slim header, the
   sign-up form panel, the "what's inside" list and the interactive checklist
   (with its print layout). Pages are generated by _dev/build-lead-magnets.js.
   ========================================================================== */

/* ---------- Slim header / footer ---------- */
.lm-header { padding-top: 0.35rem; padding-bottom: 0.35rem; }
.lm-footer a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.lm-footer a:hover { text-decoration-color: currentColor; }

/* ---------- Hero (dark, high contrast) ---------- */
.lm-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: none !important; }
.lm-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 4.5rem;
    color: #fff;
    background:
        radial-gradient(ellipse 60% 70% at 88% 0%, rgba(237, 78, 0, 0.38), transparent 60%),
        radial-gradient(ellipse 40% 50% at 0% 100%, rgba(237, 78, 0, 0.16), transparent 60%),
        var(--afford-dark-bg, #0c0b0a);
}
.lm-pill {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--afford-orange);
    border-radius: 999px;
    font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--afford-orange-lt);
}
.lm-pill b { margin: 0 0.35rem; font-weight: 400; opacity: 0.6; }
.lm-hero__title {
    margin: 1.4rem 0 0;
    font-size: clamp(2.35rem, 5.4vw, 4.25rem);
    line-height: 1.03;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}
.lm-hero__title em { font-style: normal; color: var(--afford-orange-lt); }
.lm-hero__sub {
    margin: 1.4rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}
.lm-hero__product {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 2rem 0 0;
}
.lm-hero__product img {
    flex: 0 0 auto;
    width: 9.5rem;
    height: auto;
    transform: rotate(-4deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
    background: #fff;
}
.lm-hero__points { list-style: none; margin: 0; padding: 0; }
.lm-hero__points li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.9rem;
    font-size: 1.02rem;
    line-height: 1.4;
    color: #fff;
}
.lm-hero__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--afford-orange);
}
.lm-hero__points li::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.78rem;
    width: 0.3rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.lm-hero__proof { margin: 1.75rem 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.lm-hero__proof span { margin-right: 0.35rem; letter-spacing: 0.1em; color: var(--afford-orange-lt); }
.lm-hero--hub { padding: 5rem 0 5.5rem; }
.lm-hero--hub .lm-hero__title { max-width: 14ch; }
.lm-hero--hub .lm-hero__sub { max-width: 36rem; }

/* Three checklist covers fanned out on the hub hero. */
.lm-fan { position: relative; height: 25rem; }
.lm-fan img { position: absolute; top: 0; width: 15rem; height: auto; background: #fff; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55); }
.lm-fan img:nth-child(1) { left: 0; top: 2.5rem; transform: rotate(-8deg); }
.lm-fan img:nth-child(2) { left: 7rem; top: 0.5rem; transform: rotate(4deg); }
.lm-fan img:nth-child(3) { left: 13rem; top: 3.5rem; transform: rotate(11deg); }

/* Strip of plain facts under the hero. */
.lm-trust { background: #fff; border-bottom: 1px solid var(--line-strong); }
.lm-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; }
.lm-trust li {
    padding: 0.95rem 0;
    font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.lm-trust li::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.6rem; background: var(--afford-orange); }

.lm-for { margin: 1.75rem 0 0.5rem; }

/* ---------- Sign-up form ---------- */
.lm-form { color: var(--ink); }
.lm-hero .lm-form {
    padding: 1.75rem 1.75rem 1.5rem;
    background: #fff;
    border: 0;
    border-top: 4px solid var(--afford-orange);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.lm-form__title { margin: 0 0 0.35rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.lm-form__sub { margin: 0 0 1.25rem; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.lm-form .form-label { margin-bottom: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.lm-cta { padding-top: 0.95rem; padding-bottom: 0.95rem; font-weight: 700; }
.lm-form__error { margin: 0.75rem 0 0; font-size: 0.9rem; color: #b42318; }
.lm-form__error[hidden] { display: none; }
.lm-form__proof { display: flex; justify-content: center; gap: 1.1rem; list-style: none; margin: 0.9rem 0 0.75rem; padding: 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.lm-form__proof li::before { content: "\2713"; margin-right: 0.35rem; color: var(--afford-orange-dk); }
.lm-form .sx-fine { text-align: center; }
.lm-form .btn[disabled] { opacity: 0.7; cursor: progress; }

@media (max-width: 991.98px) {
    .lm-hero { padding: 2.5rem 0 3rem; }
    .lm-hero__product img { width: 7.5rem; }
}
@media (max-width: 575.98px) {
    .lm-hero__product { gap: 1.1rem; }
    .lm-hero__points li { font-size: 0.95rem; }
    .lm-trust ul { justify-content: flex-start; }
}

/* ---------- Hub tiles ---------- */
.lm-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line-strong);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lm-tile:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--afford-orange); box-shadow: 0 18px 36px rgba(15, 14, 13, 0.14); }
.lm-tile__img { display: block; height: 15rem; overflow: hidden; padding: 1.5rem 0 0; background: #f1efec; border-bottom: 1px solid var(--line); }
.lm-tile__img img { display: block; width: 58%; height: auto; margin: 0 auto; border: 1px solid var(--line-strong); box-shadow: 0 10px 24px rgba(15, 14, 13, 0.18); transform: rotate(-2deg); transition: transform 0.25s ease; }
.lm-tile:hover .lm-tile__img img { transform: rotate(0deg) translateY(-4px); }
.lm-tile__tag { margin: 1.25rem 1.5rem 0; font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--afford-orange-dk); }
.lm-tile__title { margin: 0.35rem 1.5rem 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lm-tile__text { margin: 0.5rem 1.5rem 0; font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); }
.lm-tile__cta { margin: auto 1.5rem 0; padding: 1.25rem 0 1.4rem; font-weight: 700; font-size: 0.95rem; color: var(--afford-orange-dk); }

/* ---------- What's inside ---------- */
.lm-contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.lm-contents__row {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    gap: 0.5rem 1rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}
.lm-contents__body { display: flex; flex-direction: column; gap: 0.2rem; }
.lm-contents__title { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.lm-contents__detail { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); max-width: 40rem; }
.lm-contents__count {
    font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}
.lm-sample { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--ink-2); max-width: 42rem; }
@media (max-width: 575.98px) {
    .lm-contents__row { grid-template-columns: 2rem 1fr; }
    .lm-contents__count { grid-column: 2; }
}

.lm-faq dt { font-weight: 600; color: var(--ink); }

/* ---------- Checklist page ---------- */
.lm-intro { padding-bottom: 2rem; }
.lm-intro__title { margin-top: 0.5rem; color: var(--ink); }
.lm-intro__lead { margin: 1rem 0 0; max-width: 40rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.lm-actions { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-end; gap: 0.5rem; }
.lm-actions .btn { width: auto; height: auto; flex: 0 0 auto; }

/* Sticky progress strip under the header. */
.lm-tally {
    position: sticky;
    top: 54px;
    z-index: 900;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.6rem 0;
}
.lm-tally .container { display: flex; align-items: center; gap: 1rem; }
.lm-tally__text {
    font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.lm-tally__bar { flex: 1; height: 4px; background: var(--line); }
.lm-tally__bar > span { display: block; height: 100%; width: 0; background: var(--afford-orange); transition: width 0.2s ease; }

.lm-list { padding: 1rem 0 3rem; }
.lm-group { padding: 2rem 0 0.5rem; }
.lm-group__head {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.15rem 1rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
}
.lm-group__title { margin: 0; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.lm-group__why { grid-column: 2; margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); max-width: 42rem; }
.lm-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.lm-items li { border-bottom: 1px solid var(--line); }

.lm-item {
    display: grid;
    grid-template-columns: 1.4rem 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.9rem 0.25rem;
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink-2);
}
.lm-item:hover { color: var(--ink); }
.lm-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lm-item__box {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    border: 1.5px solid var(--ink-soft);
    background: #fff;
    position: relative;
}
.lm-item input:focus-visible + .lm-item__box { outline: 3px solid var(--afford-orange); outline-offset: 2px; }
.lm-item input:checked + .lm-item__box { background: var(--ink); border-color: var(--ink); }
.lm-item input:checked + .lm-item__box::after {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.1rem;
    width: 0.32rem;
    height: 0.65rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.lm-item input:checked ~ .lm-item__text { color: var(--ink); }

/* Result */
.lm-results { border-top: 1px solid var(--line-strong); }
.lm-gaps__title { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.lm-gaps__title[hidden] { display: none; }
.lm-gaps { margin: 0; padding: 0; list-style: none; counter-reset: gap; border-top: 1px solid var(--line-strong); }
.lm-gaps li {
    counter-increment: gap;
    display: grid;
    grid-template-columns: 2rem 1fr;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--ink-2);
}
.lm-gaps li::before {
    content: counter(gap);
    font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace);
    font-size: 0.8rem;
    color: var(--afford-orange-dk);
}
.lm-next__defy { margin: 1.25rem 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 42rem; }
.lm-next__defy a { color: var(--ink); }

/* ---------- Print: the checklist, the result and the gaps — nothing else ---------- */
@media print {
    .lm-header, .lm-footer, .lm-actions, .lm-tally, .lm-next, .sticky-call-bar, .skip-link { display: none !important; }
    body { background: #fff; }
    .lm-intro { padding: 0 0 0.5rem; }
    .lm-list { padding-bottom: 0; }
    .lm-group { break-inside: avoid; padding-top: 1.25rem; }
    .lm-item { padding: 0.45rem 0.25rem; font-size: 0.95rem; }
    .lm-item__box { border-color: #000; }
    .lm-item input:checked + .lm-item__box { background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .lm-results { break-before: page; border-top: 0; }
    .sx { padding: 1rem 0; }
}

.lm-fan-col { display: none; }
@media (min-width: 992px) { .lm-fan-col { display: block; } }

.lm-hero--cta { padding: 4rem 0 4.25rem; }
.lm-hero--cta .lm-hero__title { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lm-hero--cta .d-flex { justify-content: center; }

/* Hub hero: keep the button inside the first screen on a short laptop display. */
.lm-hero--hub { padding: 3rem 0 3.5rem; }
.lm-hero--hub .lm-hero__title { margin-top: 1.1rem; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.lm-hero--hub .lm-hero__sub { margin-top: 1.1rem; }
.lm-hero--hub .lm-hero__proof { margin-top: 1.25rem; }
