/* ============================================================
   LawnBeast V2 — ARTICLE SKIN: feature  (/features/<slug>)
   Layout 1c in the "SaaS feature content layouts" design doc.

   Editorial deep dive: centred hero with byline, a full-bleed
   visual, drop-capped opening, a right rail carrying the TOC and
   an "At a Glance" card, then a dark Get Started band.

   Evergreen — a feature page never carries a shipped date. The
   plan row in .art-glance renders from Feature.included_in_plans,
   never hardcoded. See reference/content-model.md.

   Loads after css/v2/article/base.css. MOBILE-FIRST.
   ============================================================ */

/* ---------- Editorial hero ---------- */
.art--feature .art-head {
    text-align: center;
    padding-top: 32px;
    padding-bottom: 8px;
}
.art--feature .art-eyebrow { margin-bottom: 12px; }
.art--feature .art-title {
    font-size: 30px;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.art--feature .art-lede {
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
}
.art--feature .art-byline {
    justify-content: center;
    margin-top: 16px;
}

/* ---------- Full-bleed visual under the hero ----------
   The design doc floats the visual on the dark brand band, on a white card —
   the same presentation the announcement hero already uses (.art-hero-card /
   .art-hero-media in announcement.css). The band is what makes the screenshot
   read as an exhibit rather than as page furniture, and it gives the two
   surfaces one way of showing a visual instead of two. */
.art-bleed {
    margin: 22px calc(var(--gutter) * -1) 0;
    background: var(--art-featured-grad);
    padding: 18px var(--gutter);
    overflow: hidden;
}
.art-bleed-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
/* Heroes arrive at whatever aspect the screenshot happened to be. Cap the
   height and contain rather than crop: a 2:1 invoice shot would otherwise
   dominate the fold, and cropping one loses the very detail it exists to show. */
.art-bleed img,
.art-bleed svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    object-position: center top;
}
/* ---------- Drop cap on the opening paragraph ---------- */
.art--feature .art-body > .art-lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.art--feature .art-body > .art-lead::first-letter {
    float: left;
    font-size: 48px;
    line-height: .82;
    font-weight: 700;
    color: var(--accent);
    padding: 4px 10px 0 0;
}

/* ---------- Plans row inside At a Glance ---------- */
/* Rendered from Feature.included_in_plans — the same identifier the
   gating layer reads, so the marketing page cannot drift from code. */
.art-glance dd .plan + .plan::before {
    content: " · ";
    color: var(--text-muted);
    font-weight: 400;
}

/* ---------- Get started band ---------- */
.art--feature .art-cta--dark {
    margin-top: 30px;
    padding-top: 34px;
    padding-bottom: 34px;
}

/* ---------- Related ---------- */
.art--feature .art-related {
    border-top: 0;
    margin-top: 0;
    padding-top: 28px;
    padding-bottom: 40px;
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 768px) {
    .art--feature .art-title { font-size: 38px; }
    .art-bleed {
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--radius);
        padding: 26px 28px;
    }
    /* 720px inside a 1140 container is the doc's ratio (640 of a 1000px page):
       wide enough for a screenshot to stay legible, narrow enough that the
       band still frames it. */
    .art-bleed-card {
        max-width: 720px;
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: var(--art-featured-shadow);
    }
    .art-bleed img, .art-bleed svg { max-height: 420px; }
    .art--feature .art-body > .art-lead::first-letter { font-size: 52px; }
}

@media (min-width: 1000px) {
    .art--feature .art-head { padding-top: 44px; }
    .art--feature .art-title { font-size: 42px; }

    /* Rail on the RIGHT — the deep dive leads with prose, and the
       TOC + At a Glance are reference, not navigation chrome. */
    /* display:grid + align-items:start and the sticky rail offset are shared
       with the guide skin and live in base.css under this same query. */
    .art--feature .art-layout {
        grid-template-columns: minmax(0, 1fr) 232px;
        gap: 44px;
        padding-top: 28px;
    }
    .art--feature .art-rail {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .art--feature .art-body { max-width: 720px; }
    .art--feature .art-body h2 { margin-top: 38px; }
}
