/* ==========================================================================
   Flowgen — /features/* page styles (loaded after styles.css)
   ========================================================================== */

/* Hero extras */
.ft-hero .eyebrow { color: var(--fg-2); }
.ft-hero .hero-cta { margin-top: 28px; }
.ft-hero-visual { margin: 56px auto 0; max-width: 1000px; }

/* Mock product visuals ---------------------------------------------------- */
.mock { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); overflow: hidden; color: var(--fg-2); font-size: 12px; text-align: left; }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); font-size: 12px; color: var(--fg-3); }
.mock-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-4); display: inline-block; }
.mock-top b { margin-left: 6px; color: var(--fg-2); font-weight: 500; }
.mock-body { padding: 16px; display: grid; gap: 14px; overflow-x: auto; }
.mock-body > .table { min-width: 520px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mock-panel { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg-2); padding: 12px; }
.mock-panel h4 { margin: 0 0 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.mock-kpi { display: flex; align-items: baseline; gap: 8px; }
.mock-kpi strong { font-size: 26px; font-weight: 500; color: var(--fg); letter-spacing: -0.03em; }
.mock-kpi em { font-style: normal; font-size: 12px; color: var(--green); }
.mock-kpi em.down { color: var(--pink); }
.mock-chart { width: 100%; height: auto; display: block; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-row span:first-child { color: var(--fg); }
.mock-bar { height: 6px; border-radius: 3px; background: var(--bg-4); flex: 1; overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--c, var(--green)); border-radius: 3px; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.mock-bars i { flex: 1; height: var(--h, 40%); background: var(--c, #3a3a3a); border-radius: 3px 3px 0 0; }
.mock-bars i.hi { background: var(--green); }
.mock-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--fg-2); }
.mock-tag.good { color: var(--green); border-color: rgba(8,255,182,.3); }
.mock-tag.bad { color: var(--pink); border-color: rgba(224,30,90,.4); }
.mock-tag.neutral { color: var(--amber); border-color: rgba(255,176,32,.35); }
.mock-tag.purple { color: var(--purple); border-color: rgba(187,62,255,.4); }
.mock-chat { display: grid; gap: 8px; }
.mock-chat p { padding: 8px 12px; border-radius: 10px; background: var(--bg-3); color: var(--fg); max-width: 85%; }
.mock-chat p.me { background: var(--bg-4); margin-left: auto; }
.mock-nodes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mock-node { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); white-space: nowrap; }
.mock-node.accent { border-color: rgba(187,62,255,.5); }
.mock-nodes .arrow { color: var(--fg-4); }
.mock-side { display: grid; grid-template-columns: 150px 1fr; min-height: 260px; }
.mock-side nav { border-right: 1px solid var(--line-soft); padding: 12px; display: grid; gap: 4px; align-content: start; }
.mock-side nav span { padding: 6px 8px; border-radius: 6px; }
.mock-side nav span.on { background: var(--bg-3); color: var(--fg); }
.mock-side > div { padding: 14px; }
.mock-caption { position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: var(--fg-3); }
.split-visual.mock-wrap { aspect-ratio: auto; border: 0; background: none; }
.split > *, .ft-step > *, .ft-panel > *, .ft-banner .inner > *, .feature-grid > *, .mock, .mock-side > div, .mock-panel { min-width: 0; }
.split-visual.mock-wrap .mock { width: 100%; }
.mock-steps { display: grid; gap: 6px; }
.mock-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); color: var(--fg); }
.mock-steps li i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--green); display: grid; place-items: center; flex: none; }
.mock-steps li i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mock-steps li.pending i { border-color: var(--fg-4); }
.mock-steps li.pending i::after { background: var(--fg-4); }
.mock-steps li.pending { color: var(--fg-3); }
.mock-sheet { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: 11px; }
.mock-sheet span { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-sheet span.h { color: var(--fg-3); background: var(--bg-2); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.mock-sheet span.c { color: var(--fg); }

/* Numbered feature steps ([01] Identify …) --------------------------------- */
.ft-steps { display: grid; gap: 0; border-top: 1px dashed var(--line-dash); }
.ft-step { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 32px; padding: 48px 0; border-bottom: 1px dashed var(--line-dash); align-items: center; }
.ft-step .num { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ft-step h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.ft-step p { color: var(--fg-2); margin-top: 10px; }
.ft-step .btn { margin-top: 18px; }
.ft-step ul.ft-bullets { margin-top: 16px; }

/* Bulleted feature list with heading + copy -------------------------------- */
.ft-bullets { display: grid; gap: 14px; }
.ft-bullets li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.ft-bullets li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--green) 0 35%, transparent 40%), rgba(8,255,182,.12); }
.ft-bullets strong { display: block; font-weight: 500; color: var(--fg); }
.ft-bullets span { color: var(--fg-2); font-size: 14px; }

/* Feature cards with mini visuals ------------------------------------------ */
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card .card-visual.mock { height: auto; min-height: 180px; margin-bottom: 18px; }
.card-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px; color: var(--fg); }
.card-icon svg { width: 16px; height: 16px; }

/* Testimonial / quote ------------------------------------------------------ */
.ft-quote { padding: 64px 0; border-top: 1px dashed var(--line-dash); display: grid; grid-template-columns: 1fr; gap: 24px; }
.ft-quote blockquote { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; max-width: 820px; }
.ft-quote footer { display: flex; align-items: center; gap: 12px; color: var(--fg-2); font-size: 14px; }
.ft-quote .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #3a2a55, #15232a); border: 1px solid var(--line); }
.ft-quote footer b { color: var(--fg); font-weight: 500; }
.ft-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ft-quotes .card blockquote { margin: 0; font-size: 16px; color: var(--fg); line-height: 1.5; }
.ft-quotes .card footer { margin-top: 16px; color: var(--fg-3); font-size: 13px; }
.ft-quotes .card footer b { display: block; color: var(--fg); font-weight: 500; }
.ft-stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; }

/* Project ideas grid (Aim) ------------------------------------------------- */
.ft-projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ft-project { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 140px; transition: border-color .15s; }
.ft-project:hover { border-color: #3a3a3a; }
.ft-project .tag-pill { align-self: flex-start; }
.ft-project p { font-size: 14px; color: var(--fg); line-height: 1.4; }
.ft-project small { margin-top: auto; color: var(--fg-3); font-size: 12px; }

/* Four-up integration tiles (Documents / Sheets / Agents / Skills) --------- */
.ft-tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--line-dash); border-left: 1px dashed var(--line-dash); }
.ft-tiles > div { padding: 28px 24px; border-right: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); }
.ft-tiles h3 { font-size: 16px; font-weight: 500; margin-top: 14px; }
.ft-tiles p { color: var(--fg-2); margin-top: 6px; font-size: 14px; }

/* Platform logo row -------------------------------------------------------- */
.logo-grid--8 { grid-template-columns: repeat(8, 1fr); }
.logo-grid--6 { grid-template-columns: repeat(6, 1fr); }
.logo-grid--5 { grid-template-columns: repeat(5, 1fr); }
.logo-grid > * { color: var(--fg-2); font-size: 15px; text-align: center; padding: 0 8px; }
.logo-grid--sm > * { height: 72px; font-size: 14px; }

/* Security / list of checks ------------------------------------------------ */
.ft-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 24px; }
.ft-checks li { display: flex; gap: 10px; color: var(--fg-2); font-size: 14px; }
.ft-checks li::before { content: "✓"; color: var(--green); flex: none; }

/* Mid-page CTA banner ------------------------------------------------------ */
.ft-banner { padding: 48px 0; border-top: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); }
.ft-banner .inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 40px; background: radial-gradient(120% 120% at 0% 0%, #171322 0%, var(--bg-1) 55%); }
.ft-banner h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ft-banner p { color: var(--fg-2); margin-top: 12px; }
.ft-banner .btn { margin-top: 20px; }

/* Process timeline (Agents run steps) -------------------------------------- */
.ft-timeline { display: grid; gap: 0; }
.ft-timeline details { border-bottom: 1px solid var(--line-soft); }
.ft-timeline summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 12px 0; font-size: 14px; color: var(--fg); }
.ft-timeline summary::-webkit-details-marker { display: none; }
.ft-timeline summary i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: rgba(8,255,182,.14); color: var(--green); flex: none; }
.ft-timeline summary small { margin-left: auto; color: var(--fg-3); }
.ft-timeline details p { padding: 0 0 12px 30px; color: var(--fg-2); font-size: 13px; }

/* Context Manager record carousel ------------------------------------------ */
.ft-record { flex: none; width: 320px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.ft-record .rec-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #2b1a3f, #15232a); border: 1px solid #3a2a55; display: grid; place-items: center; color: var(--fg); }
.ft-record h3 { font-size: 18px; font-weight: 500; }
.ft-record p { color: var(--fg-2); font-size: 14px; flex: 1; }
.ft-record small { color: var(--fg-3); font-size: 12px; }

/* Pill tabs + panel for "how it works" ------------------------------------- */
.ft-tabs-wrap { padding: 32px 0 64px; }
.ft-tabs-wrap .pill-tabs { margin-bottom: 24px; }
.ft-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.ft-panel h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.ft-panel p { color: var(--fg-2); margin-top: 12px; }
.ft-panel .stat { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }

[data-panel][hidden], .ft-panel[hidden] { display: none !important; }

/* Prompt chips ------------------------------------------------------------- */
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px auto 0; max-width: 820px; }
.ft-chips span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--fg-2); }

/* Two-column posts (Read more about …) ------------------------------------- */
.list-grid--2 { grid-template-columns: 1fr 1fr; }
.post-card .by { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--fg-3); font-size: 13px; }
.post-card .by i { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #3a2a55, #15232a); display: inline-block; }

/* Customer story cards ----------------------------------------------------- */
.ft-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ft-story { display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; border-radius: 14px; border: 1px solid var(--line); padding: 24px; background: var(--img, linear-gradient(135deg, #17221c, #0b120e)); transition: border-color .15s; }
.ft-story:hover { border-color: #3a3a3a; }
.ft-story .cust-logo { position: static; margin-bottom: auto; }
.ft-story h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.ft-story .link-arrow { margin-top: 12px; }

/* Final CTA inherits homepage .final-cta; mid CTA with sub heading */
.ft-cta-mid { padding: 96px 0; text-align: center; border-top: 1px dashed var(--line-dash); }
.ft-cta-mid h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.0225em; line-height: 1.12; max-width: 700px; margin: 0 auto; }
.ft-cta-mid p { margin: 16px auto 0; color: var(--fg-2); max-width: 520px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) { .ft-projects, .feature-grid--4, .ft-tiles { grid-template-columns: repeat(2, 1fr); } .logo-grid--8 { grid-template-columns: repeat(4, 1fr); } .logo-grid--6, .logo-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .ft-step { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; } .ft-panel { grid-template-columns: 1fr; gap: 24px; } .ft-quotes { grid-template-columns: 1fr; } .ft-banner .inner { grid-template-columns: 1fr; padding: 28px; } .ft-stories { grid-template-columns: 1fr; } .list-grid--2 { grid-template-columns: 1fr; } .mock-grid--3 { grid-template-columns: 1fr 1fr; } .ft-quote blockquote { font-size: 22px; } }
@media (max-width: 640px) { .ft-projects, .feature-grid--4, .ft-tiles { grid-template-columns: 1fr; } .ft-checks { grid-template-columns: 1fr; } .mock-grid, .mock-grid--3 { grid-template-columns: 1fr; } .mock-side { grid-template-columns: 1fr; } .mock-side nav { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-soft); } .logo-grid--8, .logo-grid--6, .logo-grid--5 { grid-template-columns: 1fr 1fr; } .ft-record { width: 82vw; } .hero-cta { flex-wrap: wrap; } .ft-cta-mid h2 { font-size: 32px; } .ft-step h3 { font-size: 22px; } .mock-sheet { grid-template-columns: 1.2fr 1fr 1fr; } .mock-sheet span:nth-child(4n) { display: none; } .ft-hero-visual { margin-top: 36px; } }
