/* features: MawX layouts.
   `rows`    numbered editorial rows: 01 | title | text (problem + approach sections)
   `pillars` 3 hairline-separated cards with a testimonial under each (why partner) */
.block--features .feature__title { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.block--features .feature__text { font-size: 15px; line-height: 1.65; }

.rows .features { display: block; counter-reset: row; }
.rows .feature {
  counter-increment: row; display: grid; grid-template-columns: 88px 1fr 1.4fr; gap: 32px; align-items: start;
  padding: 40px 0; border-top: 1px solid var(--maw-border);
}
.rows .feature:last-child { border-bottom: 1px solid var(--maw-border); }
.rows .feature::before { content: counter(row, decimal-leading-zero); font-family: var(--maw-font-heading); font-style: italic; font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 0.8; letter-spacing: -0.03em; color: var(--ink-mute); transition: color 0.2s ease; }
.rows .feature { transition: background 0.3s ease, padding 0.3s ease; }
.rows .feature:hover { background: linear-gradient(to right, transparent 0%, var(--paper) 20%, var(--paper) 100%); }
.rows .feature:hover::before { color: var(--plum); }
.section--bg-alt.rows .feature:hover { background: linear-gradient(to right, transparent 0%, var(--cream) 20%, var(--cream) 100%); }
.section--bg-dark.rows .feature:hover { background: linear-gradient(to right, transparent 0%, rgb(245 241 232 / 0.04) 20%, rgb(245 241 232 / 0.04) 100%); }
.section--bg-dark.rows .feature:hover::before { color: var(--plum-lift); }
/* mono annotation under a row title: write `<small>` or an em-dash line in the title? No: use the text's first line in mono via `.annot` */
.rows .feature__text > p:first-child > code { font-family: var(--maw-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); background: none; border: 0; padding: 0; }
.rows .feature__text ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.rows .feature__text li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rows .feature__text li::before { content: "•"; position: absolute; left: 0; color: var(--ink-mute); }
.section--bg-dark.rows .feature { grid-template-columns: 80px 1fr 1.6fr; gap: 48px; padding: 48px 0; }
.section--bg-dark.rows .feature::before { color: rgb(245 241 232 / 0.35); }
.section--bg-dark.rows .feature__title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); color: var(--cream); line-height: 1.2; }
.section--bg-dark.rows .feature__text { font-size: 16px; line-height: 1.6; color: rgb(245 241 232 / 0.65); }
@media (max-width: 1024px) {
  .rows .feature, .section--bg-dark.rows .feature { grid-template-columns: 1fr; row-gap: 8px; }
}

.pillars .features { gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.pillars .feature.card { border: 0; border-radius: 0; background: var(--paper); padding: 56px 40px; gap: 0; transition: background 0.3s ease; }
.pillars .feature.card:hover { background: var(--cream); box-shadow: none; transform: none; }
.pillars .features { counter-reset: pillar; }
.pillars .feature { counter-increment: pillar; }
.pillars .feature::before { content: counter(pillar, decimal-leading-zero); font-family: var(--maw-font-heading); font-style: italic; font-weight: 300; font-size: 2.5rem; line-height: 0.8; letter-spacing: -0.03em; color: var(--plum); margin-bottom: 24px; }
.pillars .feature__title { margin-bottom: 16px; }
.pillars .feature__text { color: var(--ink-soft); display: flex; flex-direction: column; flex: 1; }
.pillars .feature__text > * + * { margin-top: 1em; }
.pillars .feature__text blockquote { margin-top: auto; padding: 20px 0 0; border: 0; border-top: 1px solid var(--rule); color: var(--plum); font-size: 14px; font-style: italic; }
.pillars .feature__text blockquote p + p { margin-top: 15px; }
@media (max-width: 767px) { .pillars .features { --cols: 1; } }
/* Pillars flow straight into the "Also included" list below them */
.pillars:has(+ .included) { padding-bottom: 0; }

/* `built-for`: label-over-title row under the contact hero (item text is the small label) */
.built-for { padding-bottom: clamp(4rem, 2rem + 5vw, 7.5rem); }
.built-for .features { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--rule); gap: 32px; }
.built-for .feature { gap: 8px; }
.built-for .feature__text { order: -1; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); }
.built-for .feature__title { font-size: 20px; line-height: 1.5; letter-spacing: 0; }
.built-for a.feature:hover .feature__title { color: var(--plum); }

/* `trust-strip`: the global trust section, same label-over-title look but tighter, no hero above it */
.trust-strip { padding-top: 0; padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.trust-strip .features { margin-top: 0; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.trust-strip .feature__title { font-size: 17px; line-height: 1.4; }
.trust-strip .feature__text { font-size: 12px; }

/* `steps`: process rows with a deliverables list (title | summary + **Deliverables** list) */
.steps .feature__text strong { display: block; margin-top: 12px; font-family: var(--maw-font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); }
.steps .feature__text p + ul { margin-top: 6px; }
.steps .feature__text p:first-child { color: var(--ink-soft); }

/* `cards` style with MawX look: hairline cards, serif titles, plum link */
.block--features .features--cards .feature.card { border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); box-shadow: none; padding: 32px; gap: 12px; transition: border-color 0.2s ease; }
.block--features .features--cards .feature.card:hover { transform: none; border-color: var(--plum); box-shadow: none; }
.block--features .features--cards .feature__title { font-size: 22px; }
.block--features .features--cards .icon-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--plum); display: grid; place-items: center; }
.block--features .features--cards a.feature .feature__text::after { content: "Learn more →"; display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--plum); }
.section--bg-dark .features--cards .feature.card { background: rgb(245 241 232 / 0.04); border-color: rgb(245 241 232 / 0.12); }

/* `checks` (plus-mark rows) retired: those blocks now use style: cards */

/* `tools`: two product cards (Granite rewriter / updater) */
.tools .features { gap: 24px; margin-top: 56px; }
.tools .feature { position: relative; display: flex; flex-direction: column; gap: 0; padding: 44px 40px 40px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--plum); border-radius: 4px; transition: border-color 0.2s ease, box-shadow 0.3s ease; }
.tools .feature:hover { border-color: var(--plum); box-shadow: 0 24px 48px -32px rgb(27 23 30 / 0.25); }
.tools .icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; background: var(--cream); color: var(--plum); font-size: 20px; }
.tools .feature__title { font-size: 28px; margin-bottom: 14px; }
.tools .feature__text { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.tools .feature__text > * + * { margin-top: 14px; }
.tools .feature__text > p:first-child { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.tools .feature__text > p:first-child code { font-family: var(--maw-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); background: none; padding: 0; }
.tools .feature__text > p:last-child { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink); }
.tools .feature__text strong { color: var(--ink); }
@media (max-width: 640px) { .tools .feature { padding: 32px 24px 28px; } .tools .feature__title { font-size: 24px; } }

/* `proof-grid`: six trust points as a hairline grid with icons */
.proof-grid .features { gap: 1px; margin-top: 56px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.proof-grid .feature { display: flex; flex-direction: column; gap: 0; padding: 36px 32px 34px; background: var(--cream); transition: background 0.25s ease; }
.proof-grid .feature:hover { background: var(--paper); }
.proof-grid .icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%; background: var(--plum); color: var(--cream); font-size: 15px; }
.proof-grid .feature__title { font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.proof-grid .feature__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 960px) { .proof-grid .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proof-grid .features { grid-template-columns: 1fr; } .proof-grid .feature { padding: 28px 24px; } }

/* Product cards: faint mark offset into the lower-right corner */
.block--features .feature.card { position: relative; overflow: hidden; }
.block--features .feature__watermark { position: absolute; right: -8%; bottom: -14%; width: 46%; opacity: 0.07; pointer-events: none; transition: opacity 0.3s ease, transform 0.4s ease; }
.block--features .feature__watermark img { width: 100%; height: auto; display: block; }
.block--features a.feature.card:hover .feature__watermark { opacity: 0.12; transform: translate(-3%, -3%); }
.block--features .feature.card > *:not(.feature__watermark) { position: relative; z-index: 1; }
:root[data-theme="dark"] .block--features .feature__watermark { opacity: 0.14; filter: invert(1); }

/* Linked feature cards: no underline on hover, the title colour change is the cue */
.block--features a.feature, .block--features a.feature:hover { text-decoration: none; }
.block--features a.feature:hover .feature__title { color: var(--plum); }
