/* discover/assets/feature.css: the /features/<slug>/ pages (partials/feature-page.php).
   Builds on discover.css tokens; every class here is f-*. Mobile-first. */

/* ---------- Hero: copy + phone with floating cards ---------- */
.f-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px 0 0; }
.f-hero h1 { font-size: 2.4rem; line-height: 1.04; max-width: 16ch; }
.f-hero h1 em { font-style: normal; color: var(--coral); }
.f-hero .d-eyebrow .d-ic { color: var(--coral); }
.f-ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.f-ticks li { display: flex; align-items: center; gap: 10px; }
.f-ticks .d-ic { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 99px; background: var(--ok-bg); color: var(--ok-ink); }
.f-hero-visual { position: relative; display: grid; place-items: center; padding: 34px 0; isolation: isolate; }
.f-hero-visual::before { content: ''; position: absolute; inset: 8% 0; z-index: -1; border-radius: 32px; background: radial-gradient(120% 80% at 85% 10%, color-mix(in srgb, var(--coral) 45%, transparent), transparent 55%), linear-gradient(160deg, #22409f, #14204d); }
.f-hero-visual .d-device { --w: 240px; }
.f-float { position: absolute; display: flex; align-items: center; gap: 10px; max-width: 230px; padding: 10px 14px 10px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); font-size: .8rem; line-height: 1.3; }
.f-float strong { display: block; font-size: .84rem; }
.f-float small { color: var(--muted); }
.f-float-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--coral-tint); color: var(--coral-ink); }
.f-float-2 .f-float-icon { background: var(--ok-bg); color: var(--ok-ink); }
.f-float-1 { left: 0; top: 16%; }
.f-float-2 { right: 0; bottom: 14%; }

/* A drawn app screen for features without a real screenshot. Same box as the shots (600x1044). */
.f-screen { display: flex; flex-direction: column; gap: 8px; aspect-ratio: 600 / 1044; padding: 42px 12px 12px; background: #000; color: #f1f2f5; border-radius: 36px; overflow: hidden; font-size: 11px; line-height: 1.3; }
.f-screen-title { text-align: center; font-size: 13px; margin-bottom: 6px; }
.f-screen-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.f-screen-summary > span { background: #1f2025; border-radius: 10px; padding: 8px; color: #a2a6b0; font-size: 9.5px; }
.f-screen-summary b { display: block; color: #f1f2f5; font-size: 14px; }
.f-screen-summary > span:last-child b { color: #5ee08f; }
.f-screen-row { display: flex; align-items: center; gap: 9px; background: #1f2025; border-radius: 12px; padding: 9px; }
.f-screen-avatar { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 11px; background: hsl(var(--hue) 35% 25%); color: hsl(var(--hue) 80% 82%); }
.f-screen-text { min-width: 0; flex: 1; }
.f-screen-text b { display: block; font-weight: 600; font-size: 11.5px; }
.f-screen-text small { color: #a2a6b0; font-size: 10px; }
.f-screen-badge { flex: none; font-size: 9.5px; font-weight: 600; color: #5ee08f; background: rgba(94, 224, 143, .12); padding: 3px 7px; border-radius: 99px; }
.f-screen-notice { align-items: flex-start; background: rgba(255,255,255,.1); }
.f-screen-notice .f-screen-text small { color: #c9ccd4; }

/* Section eyebrows stay coral (discover.css greys every .d-section-head p). */
.d-section-head .d-eyebrow { color: var(--coral-ink); margin-bottom: 8px; }

/* ---------- Stat strip ---------- */
.f-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.f-stats > div { background: var(--surface); padding: 20px 22px; display: grid; gap: 2px; }
.f-stats strong { font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--navy); line-height: 1.1; }
.f-stats span { color: var(--muted); font-size: .9rem; }
@media (prefers-color-scheme: dark) { .f-stats strong { color: var(--link); } }

/* ---------- Problem: before / after ---------- */
.f-lede { max-width: 62ch; font-size: 1.12rem; line-height: 1.55; color: var(--ink); letter-spacing: -.012em; margin-bottom: 24px; }
.f-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.f-compare > div { border-radius: var(--r-card); padding: 22px 22px 18px; }
.f-before { background: var(--surface-2); border: 1px dashed var(--line-strong); }
.f-after { background: color-mix(in srgb, var(--ok-bg) 60%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok-ink) 22%, var(--line)); }
.f-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 4px 11px 4px 8px; border-radius: 99px; margin-bottom: 12px; }
.f-before .f-tag { background: var(--err-bg); color: var(--err-ink); }
.f-after .f-tag { background: var(--ok-bg); color: var(--ok-ink); }
.f-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.f-compare li { position: relative; padding-left: 20px; }
.f-compare li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 99px; background: var(--err-ink); opacity: .55; }
.f-after li::before { background: var(--ok-ink); opacity: .8; }
.f-vs { display: grid; place-items: center; color: var(--faint); transform: rotate(90deg); }
.f-note { max-width: 70ch; margin-top: 18px; color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ---------- Steps ---------- */
.f-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: s; }
.f-steps li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
.f-steps li::after { content: ''; position: absolute; left: 27px; top: 58px; bottom: 4px; border-left: 2px dashed var(--line-strong); }
.f-steps li:last-child::after { display: none; }
.f-step-icon { grid-row: span 2; position: relative; width: 56px; height: 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--navy); }
.f-step-icon b { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 99px; background: var(--action); color: var(--on-action); font-size: .72rem; display: grid; place-items: center; }
.f-steps strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); align-self: end; }
.f-steps p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .f-step-icon { color: var(--link); } }

/* ---------- Highlight cards ---------- */
.f-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.f-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.f-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.f-card h3 { margin: 6px 0 6px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.f-card p { color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
.f-card a { color: var(--link); text-decoration: none; }
.f-card a:hover { text-decoration: underline; }

/* ---------- Insight band + infographics ---------- */
.f-insight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; background: var(--band); color: var(--on-band); border-radius: 28px; padding: 32px 24px; }
.f-insight .d-eyebrow { color: #f6a5a6; }
.f-insight h2 { color: var(--on-band); }
.f-insight-copy p:not(.d-eyebrow) { margin-top: 12px; color: var(--on-band-2); font-size: .98rem; line-height: 1.65; }
.f-vis { margin: 0; align-self: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-card); padding: 22px; }
.f-vis figcaption { margin-top: 16px; color: var(--on-band-2); font-size: .85rem; line-height: 1.5; }

.f-weeks-head { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--on-band-2); margin-bottom: 12px; }
.f-weeks-name { color: var(--on-band); font-weight: 600; }
.f-weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; }
.f-weeks li { display: grid; justify-items: center; gap: 6px; }
.f-weeks li > span { width: 100%; aspect-ratio: 1; max-width: 52px; border-radius: 14px; display: grid; place-items: center; }
.f-weeks .ok > span { background: rgba(94, 224, 143, .16); color: #5ee08f; }
.f-weeks .miss > span { background: rgba(229, 102, 103, .22); color: #f6a5a6; box-shadow: inset 0 0 0 1.5px rgba(229, 102, 103, .6); }
.f-weeks small { font-size: .72rem; color: var(--on-band-2); }
.f-weeks-flag { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(229, 102, 103, .16); color: #fbd3d3; font-size: .86rem; font-weight: 500; }

.f-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.f-timeline li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding-bottom: 16px; }
.f-timeline li::after { content: ''; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: rgba(255,255,255,.14); }
.f-timeline li:last-child { padding-bottom: 0; }
.f-timeline li:last-child::after { display: none; }
.f-timeline-dot { grid-row: span 2; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--on-band); }
.f-timeline li:last-child .f-timeline-dot { background: rgba(94, 224, 143, .2); color: #5ee08f; }
.f-timeline small { color: var(--on-band-2); font-size: .74rem; }
.f-timeline strong { font-size: .95rem; font-weight: 500; }

.f-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.f-eq-term { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 16px 14px; border-radius: 16px; background: rgba(255,255,255,.08); text-align: center; }
.f-eq-term b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.f-eq-term small { color: var(--on-band-2); font-size: .74rem; }
.f-eq-result { background: var(--action); }
.f-eq-result small { color: #fde1e1; }
.f-eq-op { font-family: var(--display); font-size: 1.6rem; color: var(--on-band-2); }

.f-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; }
.f-funnel li { width: var(--w); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: rgba(120, 146, 255, .22); font-size: .9rem; font-weight: 500; }
.f-funnel li:nth-child(2) { background: rgba(120, 146, 255, .3); }
.f-funnel li:nth-child(3) { background: rgba(229, 102, 103, .4); box-shadow: inset 0 0 0 1.5px rgba(246, 165, 166, .7); }
.f-funnel li:last-child { background: rgba(94, 224, 143, .24); }
.f-funnel small { color: var(--on-band-2); font-size: .74rem; font-weight: 400; text-align: right; }

.f-hub { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.f-hub-core { grid-column: 1 / -1; justify-self: center; display: grid; justify-items: center; gap: 6px; width: 132px; height: 132px; align-content: center; border-radius: 99px; background: var(--action); color: var(--on-action); text-align: center; box-shadow: 0 0 0 10px rgba(229, 102, 103, .18), 0 0 0 20px rgba(229, 102, 103, .08); margin: 14px 0 22px; }
.f-hub-core b { font-size: .86rem; line-height: 1.2; max-width: 11ch; }
.f-hub-spoke { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: .84rem; }

.f-bubbles { display: grid; gap: 10px; }
.f-bubble { justify-self: start; max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.1); font-size: .9rem; }
.f-bubble:nth-child(2) { justify-self: center; }
.f-bubble:nth-child(3) { justify-self: end; border-radius: 16px 16px 4px 16px; }
.f-bubble-answer { justify-self: stretch !important; max-width: none; display: flex; align-items: center; gap: 8px; margin-top: 6px; border-radius: 14px; background: rgba(94, 224, 143, .18); color: #c9f5da; font-weight: 500; }

/* ---------- Connections diagram ---------- */
.f-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
.f-flow-col { display: grid; gap: 10px; }
.f-flow-col > small { font-size: .78rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.f-flow-arrow { display: grid; place-items: center; color: var(--coral); transform: rotate(90deg); }
.f-flow-core { display: grid; justify-items: center; gap: 10px; padding: 26px; border-radius: var(--r-card); background: var(--band); color: var(--on-band); text-align: center; }
.f-flow-core strong { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.f-flow-core .f-node-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--action); color: var(--on-action); }
.f-node { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.f-node:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.f-node strong { display: block; font-size: .95rem; }
.f-node small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.f-node-icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--navy); display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .f-node .f-node-icon { color: var(--link); } }

/* ---------- Audiences, FAQ, more ---------- */
.f-audience { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.f-audience > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.f-audience-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--coral-tint); color: var(--coral-ink); }
.f-audience strong { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; align-self: end; }
.f-audience p { color: var(--muted); font-size: .9rem; }
.f-faq { margin: 0; max-width: 820px; }
.f-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.f-all { margin-top: 18px; }
.d-band { margin-top: 72px; }

/* ---------- /features/ index: four-stage map, link chips ---------- */
.f-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
.f-map-nodes { display: grid; gap: 10px; }
.f-node-core { background: var(--band); border-color: transparent; color: var(--on-band); }
.f-node-core small { color: var(--on-band-2); }
.f-node-core .f-node-icon { background: var(--action); color: var(--on-action); }
.f-links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.f-links li { padding: 16px 18px; border-radius: 16px; background: var(--surface-2); }
.f-links-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); }
.f-links-pair > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface); color: var(--ink); font-size: .84rem; font-weight: 600; }
.f-links p { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.d-fa-visual .f-float-1 { top: 14%; }
.d-fa-visual .f-float-2 { bottom: 12%; }
@media (min-width: 640px) {
  .f-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .f-audience-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Desktop: labels share row 1 (subgrid), cards sit in row 2. A lone card centres against a pair; arrows centre on the cards. */
@media (min-width: 1000px) {
  .f-map { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 8px; row-gap: 0; align-items: stretch; }
  .f-map .f-flow-col { grid-row: span 2; display: grid; grid-template-rows: subgrid; gap: 0; }
  .f-map .f-flow-col > small { padding-bottom: 10px; }
  .f-map .f-flow-arrow { grid-row: 2; transform: none; align-self: center; }
  .f-map-nodes { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
  .f-map > :nth-child(1) { grid-column: 1; } .f-map > :nth-child(2) { grid-column: 2; } .f-map > :nth-child(3) { grid-column: 3; } .f-map > :nth-child(4) { grid-column: 4; } .f-map > :nth-child(5) { grid-column: 5; } .f-map > :nth-child(6) { grid-column: 6; } .f-map > :nth-child(7) { grid-column: 7; }
  .f-map .f-node { flex: 0 0 auto; min-height: 104px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes f-float { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
  .f-float { animation: f-float .7s var(--ease) both .45s; }
  .f-float-2 { animation-delay: .7s; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 420px) {
  .f-hero h1 { font-size: 2rem; }
  .f-float { max-width: 190px; font-size: .74rem; }
  .f-float-1 { top: 10%; }
  .f-hub { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .f-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-cards, .f-audience, .f-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-insight { padding: 40px; }
}
@media (min-width: 900px) {
  .f-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding: 44px 0 0; }
  .f-hero h1 { font-size: 3.4rem; }
  .f-hero-visual { padding: 40px 0; }
  .f-hero-visual .d-device { --w: 270px; }
  .f-float-1 { left: -4%; top: 20%; }
  .f-float-2 { right: -2%; bottom: 18%; }
  .f-compare { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .f-vs { transform: none; }
  .f-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; }
  .f-steps li { display: flex; flex-direction: column; gap: 6px; padding-bottom: 0; }
  .f-step-icon { margin-bottom: 10px; }
  .f-steps strong { align-self: auto; }
  .f-steps li::after { left: 70px; right: -14px; top: 27px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .f-insight { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding: 52px; }
  .f-flow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, .8fr) 40px minmax(0, 1fr); }
  .f-flow-arrow { transform: none; }
  .f-audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-audience > div { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 24px; align-items: start; }
  .f-audience > div { align-content: start; }
  .f-audience-icon { grid-row: auto; }
  .f-audience strong { align-self: auto; }
  .f-more { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .f-more .f-node { flex-direction: column; align-items: flex-start; }
}
