/* Feature pages (/features/...). Builds on styles.css and home.css; colours come from their tokens. */

/* ---------- Header over the dark hero (home.css darkens it for the light home hero) ---------- */
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]){color:var(--header-ink)}
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .desktop-nav a,
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .text-link{color:rgba(247,247,242,.78)}
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .desktop-nav a:hover,
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .text-link:hover{color:#fff}
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .icon-button{color:#fff;border-color:rgba(255,255,255,.22);background:rgba(20,32,31,.32)}
.feature-page .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .brand-name small{color:#ffad73}

/* ---------- Hero ---------- */
.feature-hero{padding:164px 0 96px;background:var(--forest);color:#fff}
.feature-hero .eyebrow{color:#ffd0ad}
.feature-hero h1{color:#fff;max-width:880px}
.feature-lede{max-width:720px;margin-top:26px;font-size:1.18rem;line-height:1.65;color:rgba(247,247,242,.82)}
.feature-proof{display:inline-flex;align-items:center;gap:10px;margin-top:26px;padding:8px 14px;border:1px solid rgba(255,255,255,.22);border-radius:999px;font-size:.88rem;font-weight:600;color:#f7f7f2}
.feature-proof::before{content:"";width:8px;height:8px;border-radius:50%;background:#5fd3a5;flex:none}
.breadcrumb{margin:0 0 22px;font-size:.85rem;color:rgba(247,247,242,.62)}
.breadcrumb a{color:rgba(247,247,242,.82);text-underline-offset:3px}

/* ---------- Outcomes ---------- */
.outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:44px}
.outcomes article{padding:26px 28px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.outcomes h3{margin:0 0 10px;font-size:1.12rem;line-height:1.35;color:var(--ink)}
.outcomes p{font-size:.98rem;line-height:1.65}

/* ---------- How it works ---------- */
.feature-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:64px;align-items:start}
.steps{margin:36px 0 0;padding:0;list-style:none;counter-reset:step;display:grid;gap:22px}
.steps li{position:relative;padding-left:58px;counter-increment:step}
.steps li::before{content:counter(step);position:absolute;left:0;top:0;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--teal-soft);color:var(--teal);font-weight:700}
.steps h3{margin:4px 0 6px;font-size:1.05rem;color:var(--ink)}
.steps p{font-size:.97rem;line-height:1.65}

/* ---------- Illustrated chat (fictional names) ---------- */
.chat-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.chat-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.chat-head strong{display:block;font-size:.95rem;color:var(--ink)}
.chat-head span{font-size:.8rem;color:var(--muted)}
.chat-avatar{width:38px;height:38px;border-radius:50%;background:var(--teal);flex:none}
.chat-msg{max-width:92%;margin:0 0 12px;padding:12px 14px;border-radius:10px;background:var(--surface-soft);font-size:.88rem;line-height:1.55;color:var(--ink)}
.chat-msg b{display:block;margin-bottom:4px;font-size:.78rem;color:var(--teal)}
.chat-msg.bot{margin-left:auto;background:var(--teal-soft)}
.chat-msg small{display:block;margin-top:6px;font-size:.72rem;color:var(--muted)}

/* ---------- What the client sees / control ---------- */
.feature-band{background:var(--surface);border-block:1px solid var(--line)}
.feature-points{margin:24px 0 0;padding:0;list-style:none;display:grid;gap:14px}
.feature-points li{position:relative;padding-left:26px;font-size:1rem;line-height:1.65;color:var(--ink-soft)}
.feature-points li::before{content:"";position:absolute;left:4px;top:.6em;width:9px;height:9px;border-radius:2px;background:var(--orange)}
.feature-points strong{color:var(--ink)}
.feature-figure{margin:0}
.feature-figure:not(.product-screen) img{width:100%;height:auto}
.feature-figure figcaption{margin-top:12px;font-size:.85rem;color:var(--muted)}

/* ---------- Related and hub ---------- */
.related{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.related a{padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:.9rem;font-weight:600;text-decoration:none}
.related a:hover{border-color:var(--teal)}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:44px}
.hub-card{display:flex;flex-direction:column;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-decoration:none;color:inherit;transition:border-color .18s ease,transform .18s ease}
.hub-card:hover{border-color:var(--teal);transform:translateY(-2px)}
.hub-card h2{font-size:1.9rem;line-height:1.05;color:var(--ink)}
.hub-card p{margin-top:12px;font-size:.98rem;line-height:1.6}
.hub-card span{margin-top:auto;padding-top:20px;font-weight:700;color:var(--teal)}

@media(max-width:860px){
  .feature-hero{padding:128px 0 72px}
  .outcomes,.hub-grid{grid-template-columns:1fr}
  .feature-split{grid-template-columns:1fr;gap:40px}
}
@media(max-width:620px){
  .feature-lede{font-size:1.05rem}
  .feature-proof{border-radius:10px;align-items:flex-start}
  .feature-proof::before{margin-top:.45em}
  .chat-msg{max-width:100%}
}
