/* ============================================================
   Feature pages — built on top of index.css tokens
   ============================================================ */

/* ── Back link ──────────────────────────────────────────── */
.feat-back {
    display: inline-block; margin: 0 0 22px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    text-decoration: none; transition: color .2s;
}
.feat-back:hover { color: var(--b); }

/* ── Hero ───────────────────────────────────────────────── */
.s-feat-hero { padding: 120px 0 64px; }
.feat-hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
}
@media (max-width: 880px) {
    .feat-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .s-feat-hero { padding: 104px 0 48px; }
}
.feat-hero-copy h1 {
    font-size: clamp(30px, 4.4vw, 52px); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.08; margin: 14px 0 18px;
}
.feat-hero-lead {
    font-size: clamp(15px, 1.8vw, 18px); color: var(--soft);
    line-height: 1.65; max-width: 520px; margin-bottom: 30px;
}
.feat-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.feat-hero-visual {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 22px; padding: 36px; aspect-ratio: 1 / .82;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.feat-hero-visual::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 70% 10%, rgba(237,93,165,.10), transparent 60%);
    pointer-events: none;
}
.feat-hero-visual svg { width: 100%; height: 100%; max-height: 320px; }

/* ── Generic content section ────────────────────────────── */
.s-feat { padding: 56px 0; }
.s-feat .section-head { margin-bottom: 40px; }

/* ── Problem callout ────────────────────────────────────── */
.feat-problem {
    background: rgba(237,93,165,.05); border: 1px solid rgba(237,93,165,.16);
    border-radius: 18px; padding: 32px 34px; margin: 8px 0;
}
.feat-problem h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.feat-problem p { font-size: 15px; color: var(--soft); line-height: 1.7; max-width: 720px; }

/* ── Steps (how it works) ───────────────────────────────── */
.feat-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .feat-steps { grid-template-columns: 1fr; } }
.feat-step {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 26px 24px; position: relative;
    transition: border-color var(--t), transform var(--t);
}
.feat-step:hover { border-color: var(--border-h); transform: translateY(-3px); }
.feat-step-num {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(159,37,131,.14); border: 1px solid rgba(237,93,165,.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: var(--b); margin-bottom: 16px;
}
.feat-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-step p { font-size: 13.5px; color: var(--soft); line-height: 1.65; }

/* ── Benefits ───────────────────────────────────────────── */
.feat-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
@media (max-width: 640px) { .feat-benefits { grid-template-columns: 1fr; } }
.feat-benefit { display: flex; gap: 12px; align-items: flex-start; }
.feat-benefit-check {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
    background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.28);
    display: flex; align-items: center; justify-content: center;
}
.feat-benefit-check svg { width: 12px; height: 12px; }
.feat-benefit-text strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.feat-benefit-text span { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Cross-links to other features ──────────────────────── */
.s-feat-cross { padding: 56px 0; }
.feat-cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .feat-cross-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat-cross-grid { grid-template-columns: 1fr; } }
.feat-cross-card {
    display: flex; flex-direction: column; gap: 4px; position: relative;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px 22px; text-decoration: none;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feat-cross-card:hover {
    border-color: var(--border-h); transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.fcc-name { font-size: 16px; font-weight: 700; color: #fff; }
.fcc-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.fcc-arrow {
    position: absolute; top: 18px; right: 20px;
    color: var(--b); font-size: 16px; opacity: 0;
    transform: translateX(-4px); transition: opacity .25s, transform .25s;
}
.feat-cross-card:hover .fcc-arrow { opacity: 1; transform: translateX(0); }

/* Icon inside a step badge (capability cards) */
.feat-step-num svg { width: 17px; height: 17px; }

/* Project P&L (income / expense / profit) widget */
.feat-pl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .feat-pl-wrap { grid-template-columns: 1fr; gap: 28px; } }
.feat-pl {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 24px;
}
.feat-pl-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-radius: 12px; margin-bottom: 10px; font-size: 15px;
}
.feat-pl-row span { color: var(--soft); }
.feat-pl-row strong { font-size: 18px; font-weight: 800; }
.pl-in { background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.2); }
.pl-in strong { color: #34d399; }
.pl-out { background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.pl-out strong { color: rgba(255,255,255,.85); }
.pl-net { margin-bottom: 0; background: rgba(237,93,165,.08); border: 1px solid var(--border-h); }
.pl-net span { color: #fff; font-weight: 600; }
.pl-net strong { color: var(--b); font-size: 20px; }
.feat-pl-chart { margin-bottom: 18px; }
.feat-pl-chart svg { width: 100%; height: auto; display: block; }
.pl-pct {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 800; color: var(--b);
    background: rgba(237,93,165,.14); border: 1px solid var(--border-h);
}
