/*
 * Pipe - landing page (index.html only).
 * Loaded after site.css, so it only adds the blocks the home page needs and
 * reuses the shared tokens (--moss, --ink, --card ...). Blog and tools pages
 * do not load this file.
 */

/* ---------------------------------------------------------------- helpers */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 90px; }

:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.lp-hero :focus-visible, .cta :focus-visible { outline-color: #d6e4a4; }

.lp-h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem);
  margin-top: 12px;
  letter-spacing: -.02em;
}
.lp-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 58ch; }

/* ----------------------------------------------- image slot with fallback
   A neutral gradient + glyph is always rendered. If the owner drops the real
   file in /assets/images/ the <img> covers it; if the file is missing the
   onerror handler removes the <img> and the placeholder stays. */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 90% at 20% 10%, rgba(168, 190, 107, .55), transparent 70%),
    linear-gradient(145deg, #dfe6c8 0%, #c8d3a4 55%, #b6c48a 100%);
  isolation: isolate;
}
:root[data-theme="dark"] .ph {
  background:
    radial-gradient(70% 90% at 20% 10%, rgba(168, 190, 107, .22), transparent 70%),
    linear-gradient(145deg, #262d18 0%, #1e2416 60%, #191e12 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(58, 74, 26, .16) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}
.ph__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(58, 74, 26, .55);
  z-index: -1;
}
:root[data-theme="dark"] .ph__glyph { color: rgba(168, 190, 107, .5); }
.ph__glyph svg { width: 56px; height: 56px; }
.ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph--bg { position: absolute; inset: 0; border-radius: 0; background: none; z-index: -1; }
.ph--bg::before { display: none; }

/* ------------------------------------------------------------- header CTA */
.hdr__act .btn--primary { white-space: nowrap; }
.hdr__nav { gap: 20px; }

/* ----------------------------------------------------------------- hero */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -74px;
  padding-top: 74px;
  color: #f2f1ec;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(168, 190, 107, .38), transparent 66%),
    radial-gradient(50% 60% at 0% 100%, rgba(196, 68, 46, .20), transparent 70%),
    linear-gradient(160deg, #3a4a1a 0%, #4a5d23 48%, #2f3b15 100%);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(242, 241, 236, .14) 1.3px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
}
.lp-hero__grid {
  display: grid;
  gap: 44px;
  padding-block: 52px 64px;
}
@media (min-width: 1000px) {
  .lp-hero__grid { grid-template-columns: 1fr 1.12fr; align-items: center; gap: 40px; padding-block: 72px 88px; }
}
.lp-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 241, 236, .28);
  background: rgba(242, 241, 236, .08);
  font-size: .8125rem;
  font-weight: 500;
  color: #e6e8d6;
}
.lp-hero__pill svg { width: 15px; height: 15px; color: #c1d488; }
.lp-hero h1 {
  margin-top: 20px;
  font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.7rem);
  letter-spacing: -.024em;
  line-height: 1.03;
  color: #fff;
}
.lp-hero h1 em { font-style: normal; color: #d6e4a4; }
.lp-hero__sub { margin-top: 20px; max-width: 46ch; font-size: 1.125rem; color: #dfe3cc; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-hero .btn--primary { background: #f2f1ec; color: #2f3b15; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6); }
.lp-hero .btn--primary:hover { background: #fff; }
.lp-hero .btn--ghost {
  background: transparent;
  color: #f2f1ec;
  border-color: rgba(242, 241, 236, .4);
}
.lp-hero .btn--ghost:hover { background: rgba(242, 241, 236, .1); border-color: rgba(242, 241, 236, .7); }
.lp-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.lp-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 20, 8, .28);
  border: 1px solid rgba(242, 241, 236, .16);
  font-size: .8125rem;
  color: #e6e8d6;
}
.lp-hero__chips svg { width: 15px; height: 15px; color: #c1d488; }

/* demo stage: Desk big, Gestao overlapping. Never clickable. */
.stage {
  position: relative;
  pointer-events: none;
  user-select: none;
  padding-bottom: 14%;
}
.stage__desk { width: 100%; }
.stage__gestao { position: absolute; right: -2%; bottom: 0; width: 62%; }
@media (min-width: 1000px) { .stage { margin-right: -48px; } .stage__gestao { right: 2%; } }
@media (min-width: 1280px) { .stage { margin-right: -96px; } }
@media (prefers-reduced-motion: no-preference) {
  .stage__gestao { animation: lp-float 7s ease-in-out infinite; }
  @keyframes lp-float { 50% { transform: translateY(-8px); } }
}
/* ------------------------------------------------------ device frame */
.dev {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, .14);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .7), 0 0 0 6px rgba(242, 241, 236, .08);
}
.dev__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #ecebe4;
  border-bottom: 1px solid #d8d6cc;
}
.dev__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9c7bb; }
.dev__bar span {
  flex: 1;
  max-width: 55%;
  margin-inline: auto;
  text-align: center;
  font: 500 10.5px/1 "IBM Plex Mono", monospace;
  color: #6b6a62;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8f7f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ------------------------------------------------------- human scenes */
.scenes { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 640px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .scenes { grid-template-columns: repeat(4, 1fr); } }
.scene .ph { aspect-ratio: 4 / 3; }
.scene h3 { margin-top: 16px; font-size: 1.0625rem; }
.scene p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }

/* -------------------------------------------------------- testimonials */
.depo-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .depo-grid { grid-template-columns: repeat(3, 1fr); } }
.story {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.story__metric { display: flex; align-items: baseline; gap: 10px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); }
.story__metric b { font: 700 2.1rem/1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: -.02em; color: var(--moss); }
.story__metric span { font-size: .8125rem; color: var(--ink-3); }
.story blockquote { margin: 18px 0 22px; flex: 1; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.story figcaption { display: flex; align-items: center; gap: 14px; }
.story__av {
  position: relative;
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--moss-tint);
  color: var(--moss-deep);
  font: 600 1rem "IBM Plex Sans", sans-serif;
  border: 2px solid var(--moss-line);
}
.story__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story figcaption b { display: block; font-size: .9375rem; }
.story figcaption span { display: block; font-size: .8125rem; color: var(--ink-3); }
.mark-ph {
  display: inline-block;
  margin-top: 28px;
  font: 500 .75rem "IBM Plex Mono", monospace;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: 20px; margin-top: 40px; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.tier--hot { border: 2px solid var(--moss); box-shadow: var(--sh-2); }
.tier__flag {
  position: absolute; top: -13px; left: 24px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--moss); color: #fff;
  font: 600 .6875rem "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase;
}
:root[data-theme="dark"] .tier__flag { color: #12140e; }
.tier h3 { font-size: 1.25rem; }
.tier__for { margin-top: 6px; font-size: .875rem; color: var(--ink-3); min-height: 2.6em; }
.tier__price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.tier__price b { font: 700 2.8rem/1 "IBM Plex Sans Condensed", sans-serif; letter-spacing: -.03em; }
.tier__price span { font-size: .875rem; color: var(--ink-3); }
.tier__tbd { margin-top: 8px; font-size: .75rem; color: var(--terra); font-weight: 600; }
.tier dl { margin: 22px 0 0; flex: 1; border-top: 1px solid var(--line); }
.tier dl div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tier dt { color: var(--ink-2); }
.tier dd { margin: 0; font-weight: 600; text-align: right; }
.tier .btn { margin-top: 24px; }
.price-note { margin-top: 22px; font-size: .8125rem; color: var(--ink-3); }

/* ---------------------------------------------------------- CTA + form */
.cta--split { text-align: left; display: grid; gap: 36px; padding: 40px 24px; }
@media (min-width: 900px) { .cta--split { grid-template-columns: 1fr 1fr; align-items: center; padding: 64px 56px; gap: 56px; } }
.cta--split > .cta__txt { position: relative; z-index: 1; }
.cta--split p { margin-inline: 0; }
.cta__bg { position: absolute !important; inset: 0; z-index: 0; opacity: .35; border-radius: 0; background: none; }
.cta__bg::before { display: none; }
.cform { position: relative; z-index: 1; display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: rgba(242, 241, 236, .07); border: 1px solid rgba(242, 241, 236, .16); }
.cform label { display: grid; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--night-ink); }
.cform input, .cform select, .cform textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(242, 241, 236, .25);
  background: rgba(15, 18, 9, .55);
  color: var(--night-ink);
  font: inherit;
  font-weight: 400;
}
.cform textarea { min-height: 86px; resize: vertical; }
.cform input::placeholder, .cform textarea::placeholder { color: #8f927f; }
.cform .btn { width: 100%; }
.cform__msg { font-size: .8125rem; color: #d6e4a4; min-height: 1.2em; }
.cform__msg.is-erro { color: #ffb4a6; }
.cform__lgpd { font-size: .75rem; color: var(--night-ink); opacity: .8; text-align: center; }
.cform__lgpd a { color: inherit; text-decoration: underline; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform [aria-invalid="true"] { border-color: #ffb4a6; }
.cform .btn:disabled { opacity: .65; cursor: progress; }
.cform__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .cform__row { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ small fixes */
@media (max-width: 999px) { .lp-hero { margin-top: -74px; } }


.story, .scene { margin: 0; min-width: 0; }
.dk-item time { white-space: nowrap; }

.dev img { display: block; width: 100%; height: auto; }

/* hero photo: tinted by the moss base, darkened on the text side for contrast */
.lp-hero .ph--bg img { opacity: .5; mix-blend-mode: luminosity; }
.lp-hero .ph--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(36, 47, 14, .94) 0%, rgba(40, 52, 16, .72) 48%, rgba(40, 52, 16, .35) 100%);
}
.cta__bg img { opacity: .85; }
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 25, 15, .85) 0%, rgba(22, 25, 15, .55) 55%, rgba(22, 25, 15, .35) 100%);
}

/* rotating word in the hero headline */
.lp-hero .gira { color: #d6e4a4; }

/* ------------------------------------------------- channels: one inbox */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 40px auto 0; max-width: 900px; }
@media (min-width: 720px) { .logos { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.logos li {
  display: grid; justify-items: center; gap: 10px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--sh-1);
  font-size: .9375rem; font-weight: 600;
}
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) { .logos li:last-child:nth-child(odd) { grid-column: auto; } }
.logos img { width: 52px; height: 52px; }
.inbox-flow { display: grid; justify-items: center; margin: 4px 0 0; color: var(--moss); }
.inbox-flow::before { content: ""; width: 0; height: 36px; border-left: 2px dashed var(--moss); opacity: .6; }
.inbox-flow svg { width: 26px; height: 26px; margin-top: -4px; }
.inbox-visual { max-width: 960px; margin: 0 auto; pointer-events: none; user-select: none; }
.inbox-visual .dev { box-shadow: var(--sh-3); }
.lp-hero .gira { display: block; }
.story__metric { flex-direction: column; align-items: flex-start; gap: 4px; } .story__metric b { font-size: 1.9rem; } .story__av { width: 60px; height: 60px; }

/* ------------------------------------------------------ product story: one stage, four connected steps */
.fl { --ease: cubic-bezier(.65, 0, .35, 1); --out: cubic-bezier(.22, 1, .36, 1); --d: 44px; max-width: 1040px; margin: 40px auto 0; }
@media (min-width: 700px) { .fl { --d: 56px; } }

/* rail: 4 nodes joined by a line; a dot (the message) travels along it */
.fl__rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.fl__track { position: absolute; left: 12.5%; right: 12.5%; top: calc(4px + var(--d) / 2 - 1.5px); height: 3px; border-radius: 3px; background: var(--line-strong); }
.fl__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--moss); transform-origin: left; transform: scaleX(var(--p)); transition: transform .9s var(--ease); }
.fl__pkt { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 5px var(--moss-tint); transition: left .9s var(--ease); }
.fl__rail button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 2px; border: 0; background: none; color: var(--ink-3); font: 600 .8125rem/1.2 "IBM Plex Sans", sans-serif; cursor: pointer; border-radius: var(--r-md); }
.fl__dot { width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line-strong); color: var(--ink-3); transition: background .4s var(--out), border-color .4s var(--out), color .4s var(--out), box-shadow .4s var(--out), transform .4s var(--out); }
.fl__dot svg { width: 44%; height: 44%; }
.fl__rail button:hover .fl__dot { border-color: var(--moss); }
.fl__rail button.is-done .fl__dot { background: var(--moss-tint); border-color: var(--moss); color: var(--moss); }
.fl__rail button.is-on { color: var(--ink); }
.fl__rail button.is-on .fl__dot { background: var(--moss); border-color: var(--moss); color: #fff; box-shadow: 0 0 0 6px var(--moss-tint); transform: scale(1.06); }
:root[data-theme="dark"] .fl__rail button.is-on .fl__dot { color: #12140e; }
.fl__rail button:focus-visible, .fl__ctl button:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }

/* stage: panels stacked in one grid cell so the height never jumps */
.fl__stage { position: relative; overflow: hidden; display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-3); }
.fl__prog { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 3px; background: var(--moss); transform: scaleX(0); transform-origin: left; }
.fl__panel { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; padding: 26px 18px 22px; visibility: hidden; opacity: 0; transition: opacity .35s var(--out), visibility 0s .35s; }
.fl__panel.is-on { visibility: visible; opacity: 1; transition: opacity .45s var(--out) .15s, visibility 0s; }
@media (min-width: 700px) { .fl__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; align-content: center; padding: 40px 44px; } }
.fl__k { margin: 0 0 8px; color: var(--moss); font: 600 .75rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.fl__txt h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; text-wrap: balance; }
.fl__txt p:last-child { margin: 0; color: var(--ink-2); line-height: 1.55; }
.fl__viz { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-soft); pointer-events: none; user-select: none; }
.fl__ex { margin: 0; font-size: .75rem; color: var(--ink-3); }

/* stagger: children fade up after the panel is on; delay comes from --d (ms) */
.fl .s { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--out), transform .5s var(--out); }
.fl__panel.is-on .s { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 1ms + 350ms); }

/* shared blocks */
.fl__card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.fl__card > div { min-width: 0; flex: 1; }
.fl__card strong { display: block; font-size: .9375rem; }
.fl__card small { display: block; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl__av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--moss-tint); color: var(--moss-deep); font: 600 .8rem "IBM Plex Sans", sans-serif; }
.fl__tag, .fl__pill { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.fl__tag { background: var(--moss); color: #fff; }
:root[data-theme="dark"] .fl__tag { color: #12140e; }
.fl__pill { background: var(--moss-tint); color: var(--moss-deep); }
.fl__card--new { border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss-tint); }

/* step 1 */
.fl__chs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fl__chs span { aspect-ratio: 1; max-width: 56px; justify-self: center; width: 100%; display: grid; place-items: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); opacity: .55; }
.fl__chs img { width: 62%; height: 62%; }
.fl__chs .is-hit { opacity: 1; border-color: var(--moss); box-shadow: 0 0 0 4px var(--moss-tint); }
.fl__bub { align-self: flex-start; max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line-strong); }

/* step 2 */
.fl__flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.fl__flow li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.fl__flow li + li::before { content: ""; position: absolute; left: 29px; top: -15px; width: 2px; height: 14px; background: var(--moss-line); }
.fl__flow svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--moss-tint); color: var(--moss); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fl__flow div { min-width: 0; }
.fl__flow strong { display: block; font-size: .9375rem; }
.fl__flow small { display: block; font-size: .8125rem; color: var(--ink-2); }
.fl__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fl__opts em { font-style: normal; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--moss-line); font-size: .75rem; font-weight: 600; color: var(--moss-deep); background: var(--card); }
.fl__opts .is-pick { background: var(--moss); border-color: var(--moss); color: #fff; }
:root[data-theme="dark"] .fl__opts .is-pick { color: #12140e; }

/* step 3 */
.fl__qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fl__qs div { position: relative; padding: 8px 12px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.fl__qs b { display: block; font-size: 1.4rem; line-height: 1.1; }
.fl__qs span { font-size: .8125rem; color: var(--ink-2); }
.fl__qs i { position: absolute; top: 8px; right: 8px; padding: 0 8px; border-radius: 999px; background: var(--moss); color: #fff; font: 600 .75rem/1.6 "IBM Plex Sans", sans-serif; }
:root[data-theme="dark"] .fl__qs i { color: #12140e; }
.fl__qs .is-on { border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss-tint); }

/* step 4 */
.fl__msgs { display: flex; flex-direction: column; gap: 8px; }
.fl__m { align-self: flex-start; max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line-strong); }
.fl__m--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fl__type { display: block; clip-path: inset(0 0 0 0); }
.fl__panel.is-on .fl__type { animation: fl-type 1.5s linear 1.1s both; }
.fl__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.fl__tiles div { padding: 8px 10px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.fl__tiles b { display: block; font-size: 1.2rem; line-height: 1.15; color: var(--moss-deep); font-variant-numeric: tabular-nums; }
.fl__tiles span { font-size: .75rem; color: var(--ink-2); }

@media (max-width: 699px) { .fl__flow small, .fl__ex { display: none; } .fl__flow { gap: 12px; } .fl__flow li + li::before { top: -13px; height: 12px; } .fl__panel { gap: 16px; padding: 22px 16px 18px; } .fl__viz { padding: 12px; } }
/* controls */
.fl__ctl { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.fl__ctl button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.fl__ctl button:hover { border-color: var(--moss); background: var(--moss-tint); }
.fl__ctl svg { width: 18px; height: 18px; }
.fl__ctl .i-play { display: none; }
.fl__ctl [aria-pressed="true"] .i-play { display: block; }
.fl__ctl [aria-pressed="true"] .i-pause { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .fl.is-run .fl__prog { animation: fl-fill 6.5s linear both; }
  .fl.is-hold .fl__prog { animation-play-state: paused; }
  @keyframes fl-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes fl-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .fl *, .fl *::before { transition: none !important; animation: none !important; }
  .fl .s { opacity: 1; transform: none; }
  .fl__ctl [data-play] { display: none; }
}
