/* ==========================================================================
   Features page (/site/features) — Pen redesign. Loaded after editorial.css and
   only on this page; every rule is scoped to .ed-features so shared styles stay
   untouched.
   ========================================================================== */

.ed-features .ed-hero__l1 { font-size: clamp(44px, 11.7vw, 168px); }
.ed-features .ed-hero__l2 { font-size: clamp(40px, 9.7vw, 140px); }
.ed-features .ed-hero__head { row-gap: 20px; }
.ed-features .ed-hero__intro { color: var(--ed-muted); font-weight: 400; font-size: clamp(17px, 1.25vw, 18px); line-height: 1.55; }

.ed-features ul { list-style: none; margin: 0; padding: 0; }
.ed-features__band { background: var(--ed-paper-2); padding-block: 112px; }
.ed-features__section { padding-block: 120px; }
.ed-features__kicker { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.ed-features__red { color: var(--ed-red); }

/* ── The solution ────────────────────────────────────────────────────────── */
.ed-features__solution { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: center; margin-top: 56px; }
.ed-features__statement { display: flex; flex-direction: column; gap: 32px; }
.ed-features__statement-text { margin: 0; font-weight: 500; font-size: clamp(26px, 3.06vw, 44px); line-height: 1.12; letter-spacing: -0.03em; }
.ed-features__punch { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; margin: 0; }
.ed-features__punch .ed-display { font-size: clamp(48px, 6.67vw, 96px); }
.ed-features__punch .ed-contrast { font-size: clamp(48px, 6.67vw, 96px); letter-spacing: -0.0625em; color: var(--ed-red); }
.ed-features__phone { width: 340px; aspect-ratio: 340 / 700; padding: 10px; border-radius: 44px; background: var(--ed-ink); box-shadow: 0 40px 80px rgba(12, 12, 14, 0.2); }
.ed-features__phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }

/* ── Feature index ───────────────────────────────────────────────────────── */
.ed-features__index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin: 64px 0; }
.ed-features__title { margin: 0; }
.ed-features__title .ed-display,
.ed-features__title .ed-contrast { font-size: clamp(48px, 8.9vw, 128px); }
.ed-features__title .ed-contrast { letter-spacing: -0.0625em; }
.ed-features__title-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 24px; }
.ed-features__intro { margin: 0; max-width: 340px; color: var(--ed-muted); font-size: 17px; line-height: 1.55; }

.ed-features__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 40px; }
.ed-features__item { display: grid; grid-template-columns: auto minmax(0, 1fr) 56px; gap: 28px; align-items: start; padding: 28px 0 36px; border-top: 1.5px solid var(--ed-ink); }
/* Design uses brand red here; at 12px it is 3.4:1 on paper (AA needs 4.5:1), so ink. */
.ed-features__num { color: var(--ed-ink); padding-top: 6px; }
.ed-features__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ed-features__title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ed-features__item-title { margin: 0; font-family: var(--ed-display-text); font-weight: 700; font-size: clamp(32px, 3.33vw, 48px); line-height: 0.95; text-transform: uppercase; }
.ed-features__badge { display: inline-flex; padding: 5px 10px; border: 1px solid var(--ed-ink); border-radius: 100px; font-size: 11px; line-height: 1.2; }
.ed-features__desc { margin: 0; color: var(--ed-muted); font-size: 17px; line-height: 1.55; }
.ed-features__icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--ed-line); border-radius: 50%; color: var(--ed-ink); }

/* ── Works with (reuses includes/home/integrations-item markup) ──────────── */
.ed-features__works { padding-bottom: 120px; }
.ed-features__works-label { display: flex; align-items: center; gap: 24px; color: var(--ed-muted); }
.ed-features__works-label h2 { margin: 0; flex-shrink: 0; }
.ed-features__rule { flex: 1; height: 1px; background: var(--ed-line); }
.ed-features__logos { display: grid; grid-template-columns: repeat(10, auto); justify-content: space-between; align-items: center; gap: 28px 24px; margin-top: 36px; }
.ed-features .integration-item { display: inline-flex; align-items: center; }
.ed-features .integration-dot { display: none; }
.ed-features .integration-link { display: flex; align-items: center; opacity: 0.6; transition: opacity .2s var(--ed-ease); }
.ed-features .integration-link:hover { opacity: 1; }
.ed-features .integration-logo { display: block; width: auto; max-height: 30px; object-fit: contain; filter: brightness(0); }
.ed-features .integration-logo--invert { filter: grayscale(1); }

/* ── Final CTA: three-line head, sized so each line sets on one row ─────── */
.ed-features .ed-final__head .ed-display,
.ed-features .ed-final__head .ed-contrast { font-size: clamp(44px, 8.2vw, 118px); }

@media (max-width: 1279px) {
    .ed-features__logos { grid-template-columns: repeat(5, auto); justify-content: space-around; row-gap: 32px; }
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .ed-features__solution { grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: center; }
    .ed-features__statement { justify-self: stretch; }
    .ed-features__index-head { flex-direction: column; align-items: flex-start; gap: 28px; }
    .ed-features__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
/* ── Phones (Pen "Features — Mobile (390)") ──────────────────────────────── */
@media (max-width: 760px) {
    .ed-features .ed-hero { padding-bottom: 48px; }
    .ed-features .ed-hero__l1 { font-size: 11.8vw; }
    .ed-features .ed-hero__l2 { font-size: 11.8vw; }
    .ed-features .ed-hero__intro { font-size: 16px; }
    .ed-features__band, .ed-features__section { padding-block: 56px; }

    /* Solution: smaller statement, punch line and phone. */
    .ed-features__solution { gap: 28px; margin-top: 24px; }
    .ed-features__statement { gap: 24px; }
    .ed-features__statement-text { font-size: 22px; line-height: 1.18; letter-spacing: -0.025em; }
    .ed-features__punch { column-gap: 10px; }
    .ed-features__punch .ed-display, .ed-features__punch .ed-contrast { font-size: 40px; }
    .ed-features__phone { width: 200px; padding: 8px; border-radius: 34px; }
    .ed-features__phone img { border-radius: 26px; }

    /* Eight tools: icon · title + one line · number, in compact rows. */
    .ed-features__index-head { margin: 24px 0; gap: 20px; }
    .ed-features__title .ed-display, .ed-features__title .ed-contrast { font-size: 13.3vw; }
    .ed-features__intro { font-size: 16px; }
    .ed-features__list { row-gap: 0; border-top: 1.5px solid var(--ed-ink); }
    .ed-features__item { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--ed-line); }
    .ed-features__icon { grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
    .ed-features__icon svg { width: 18px; height: 18px; }
    .ed-features__text { grid-column: 2; grid-row: 1; gap: 4px; }
    .ed-features__num { grid-column: 3; grid-row: 1; padding: 0; }
    .ed-features__title-line { gap: 6px 8px; }
    .ed-features__item-title { font-size: 24px; }
    .ed-features__badge { padding: 3px 8px; font-size: 9px; }
    .ed-features__desc { font-size: 14px; line-height: 1.45; }

    /* Works with: one swipeable row. */
    .ed-features__works { padding-bottom: 56px; }
    .ed-features__works-label { gap: 12px; }
    .ed-features__rule { display: none; }
    .ed-features__logos { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 32px; margin: 20px calc(var(--bk-edge, 20px) * -1) 0; padding-inline: var(--bk-edge, 20px); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .ed-features__logos::-webkit-scrollbar { display: none; }
    .ed-features .integration-item { flex-shrink: 0; }
    .ed-features .integration-logo { max-height: 22px; }
}
