/* GLIME How It Works - journey, assistant, agents, control, FAQ.
   Loads after how-it-works.css and reuses its variables. */

.hero-strip span b { color: var(--green); }

/* ==============================
   SHARED SMALL PIECES
============================== */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 999px;
  font-family: "DM Mono", monospace; font-size: 0.6rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,0.04);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); display: inline-block; }
.chip.ig i { background: #ff7ab8; }
.chip.wa i { background: var(--green); }
.chip.gl i { background: var(--cyan); }
.chip.pay i { background: var(--amber); }
.chip.you i { background: var(--purple); }

.mini-note { margin: 12px 0 0; color: var(--dim); font-size: 0.68rem; line-height: 1.5; }

.sub-heading { margin: 46px 0 18px; }
.sub-heading h3 { margin: 8px 0 6px; font-size: clamp(1.3rem, 5vw, 1.9rem); letter-spacing: -0.04em; line-height: 1.12; }
.sub-heading p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.7; max-width: 720px; }

/* ==============================
   SETUP
============================== */
.setup-grid { display: grid; gap: 14px; counter-reset: setup; }
.setup-card {
  position: relative; padding: 22px 20px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); counter-increment: setup;
}
.setup-card::before {
  content: counter(setup, decimal-leading-zero); display: block; margin-bottom: 14px;
  color: var(--green); font-family: "DM Mono", monospace; font-size: 0.72rem;
}
.setup-card h3 { margin: 0 0 7px; font-size: 1.08rem; letter-spacing: -0.03em; }
.setup-card p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.65; }
.setup-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.setup-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.setup-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.live-banner {
  margin-top: 16px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(105deg, rgba(80,245,168,0.10), rgba(82,232,255,0.07));
  border: 1px solid rgba(80,245,168,0.28);
  display: flex; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--text); line-height: 1.55;
}
.live-banner b { color: var(--green); }
.live-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(80,245,168,0.6); animation: glime-pulse 1.8s infinite; }
@keyframes glime-pulse { 70% { box-shadow: 0 0 0 10px rgba(80,245,168,0); } 100% { box-shadow: 0 0 0 0 rgba(80,245,168,0); } }

/* ==============================
   JOURNEY RAIL
============================== */
.journey-rail {
  position: sticky; top: 64px; z-index: 30; margin: 0 -14px 26px; padding: 10px 14px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  background: rgba(7,16,22,0.9); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease;
}
.journey-rail.show { opacity: 1; pointer-events: auto; transform: none; }
.journey-rail::-webkit-scrollbar { display: none; }
.journey-rail button {
  flex: 0 0 auto; padding: 8px 12px; color: var(--muted); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); border-radius: 999px; font-family: "DM Mono", monospace; font-size: 0.62rem; white-space: nowrap;
}
.journey-rail button b { color: var(--green); font-weight: 500; margin-right: 5px; }
.journey-rail button.active { color: #021014; background: linear-gradient(105deg, var(--green), var(--cyan)); border-color: transparent; }
.journey-rail button.active b { color: #021014; }

/* ==============================
   STAGES
============================== */
.stage {
  position: relative; display: grid; gap: 22px; padding: 26px 0 30px 26px;
  border-left: 2px solid rgba(82,232,255,0.22); margin-left: 8px; scroll-margin-top: 130px;
}
.stage::before {
  content: attr(data-n); position: absolute; left: -17px; top: 24px; width: 32px; height: 32px; display: grid; place-items: center;
  color: #021014; background: linear-gradient(135deg, var(--green), var(--cyan)); border-radius: 10px;
  font-family: "DM Mono", monospace; font-size: 0.68rem;
}
.stage:last-of-type { border-left-color: transparent; }
.stage-copy h3 { margin: 12px 0 8px; font-size: clamp(1.25rem, 5vw, 1.75rem); letter-spacing: -0.04em; line-height: 1.12; }
.stage-copy > p { margin: 0 0 14px; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
.stage-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.stage-copy li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.stage-copy li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.stage-copy li b { color: var(--text); font-weight: 700; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.stage-result {
  margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 0.76rem; line-height: 1.5; color: var(--text);
  background: rgba(80,245,168,0.07); border: 1px solid rgba(80,245,168,0.22);
}
.stage-result b { color: var(--green); font-family: "DM Mono", monospace; font-size: 0.6rem; letter-spacing: 0.08em; display: block; margin-bottom: 3px; }

/* mock surfaces */
.mock { width: 100%; max-width: 440px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock-head strong { font-size: 0.8rem; display: block; }
.mock-head small { color: var(--dim); font-size: 0.66rem; }
.avatar.ig { background: linear-gradient(135deg, #ff9a5c, #ff4f9a, #8a5cff); color: #fff; }
.avatar.wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #021014; }
.mock-label { margin: 12px 0 0; color: var(--dim); font-size: 0.64rem; }

.post-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.03); }
.post-img { height: 110px; display: grid; place-items: center; color: rgba(255,255,255,0.85); font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; background: linear-gradient(135deg, rgba(255,154,92,0.55), rgba(255,79,154,0.5), rgba(138,92,255,0.55)); }
.post-body { padding: 12px 13px; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.cmt { display: flex; gap: 9px; margin-top: 10px; font-size: 0.74rem; line-height: 1.45; }
.cmt .avatar { width: 26px; height: 26px; font-size: 0.62rem; flex: 0 0 auto; }
.cmt b { color: var(--text); font-weight: 700; }
.cmt span { color: var(--muted); }
.cmt.reply { margin-left: 34px; padding: 8px 10px; background: rgba(80,245,168,0.07); border: 1px solid rgba(80,245,168,0.2); border-radius: 10px; }

.cta-bubble { align-self: flex-end; max-width: 84%; padding: 10px 13px; border-radius: 14px; border-bottom-right-radius: 4px; background: linear-gradient(105deg, var(--green), var(--cyan)); color: #021014; font-size: 0.78rem; line-height: 1.5; }
.cta-bubble .fake-btn { display: block; margin-top: 8px; padding: 8px 10px; text-align: center; border-radius: 9px; background: rgba(2,16,20,0.88); color: var(--green); font-weight: 800; font-size: 0.72rem; }

.pay-card, .invoice-card, .ship-card { align-self: flex-end; width: 88%; border-radius: 14px; padding: 13px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); font-size: 0.74rem; }
.pay-card .row, .invoice-card .row, .ship-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--muted); }
.pay-card .row b, .invoice-card .row b, .ship-card .row b { color: var(--text); }
.pay-card .total, .invoice-card .total { margin-top: 6px; padding-top: 9px; border-top: 1px dashed var(--line); }
.pay-card .fake-btn { display: block; margin-top: 10px; padding: 9px; text-align: center; border-radius: 9px; background: linear-gradient(105deg, var(--green), var(--cyan)); color: #021014; font-weight: 800; }
.paid-stamp { display: inline-block; margin-bottom: 6px; padding: 4px 9px; border-radius: 6px; color: var(--green); background: rgba(80,245,168,0.1); border: 1px solid rgba(80,245,168,0.3); font-family: "DM Mono", monospace; font-size: 0.58rem; letter-spacing: .08em; }
.invoice-card h4, .ship-card h4 { margin: 0 0 6px; font-size: 0.8rem; }

.track { display: grid; gap: 0; margin-top: 8px; }
.track div { position: relative; padding: 0 0 12px 20px; color: var(--muted); font-size: 0.7rem; }
.track div::before { content: ""; position: absolute; left: 3px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.track div::after { content: ""; position: absolute; left: 6.5px; top: 14px; bottom: -2px; width: 1px; background: var(--line); }
.track div:last-child::after { display: none; }
.track div.pending::before { background: transparent; border: 1px solid var(--dim); }
.track b { color: var(--text); }

/* ==============================
   HANDOFF FLOW
============================== */
.flow-board { display: grid; gap: 10px; margin-top: 8px; }
.flow-node { padding: 16px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.flow-node small { display: block; margin-bottom: 5px; font-family: "DM Mono", monospace; font-size: 0.58rem; letter-spacing: .1em; color: var(--cyan); }
.flow-node h4 { margin: 0 0 5px; font-size: 0.98rem; letter-spacing: -0.02em; }
.flow-node p { margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.flow-node.ig { border-color: rgba(255,122,184,0.35); } .flow-node.ig small { color: #ff7ab8; }
.flow-node.wa { border-color: rgba(80,245,168,0.35); } .flow-node.wa small { color: var(--green); }
.flow-node.brain { border-color: rgba(82,232,255,0.45); background: linear-gradient(145deg, rgba(82,232,255,0.1), rgba(17,30,39,0.9)); }
.flow-node.pay { border-color: rgba(255,200,87,0.35); } .flow-node.pay small { color: var(--amber); }
.flow-arrow { text-align: center; color: var(--cyan); font-size: 1.05rem; line-height: 1; }

/* ==============================
   TRUST / PAYMENT
============================== */
.trust-grid { display: grid; gap: 14px; }
.trust-card { padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-card.hl { border-color: rgba(80,245,168,0.35); background: linear-gradient(145deg, rgba(80,245,168,0.09), rgba(17,30,39,0.9)); }
.trust-card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.03em; }
.trust-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.8rem; line-height: 1.65; }
.trust-card p:last-child { margin-bottom: 0; }

/* ==============================
   FOLLOW-UP TIMELINE + LOOP
============================== */
.fu-line { display: grid; gap: 12px; margin-top: 8px; }
.fu-card { padding: 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; position: relative; }
.fu-card .when { display: inline-block; padding: 5px 9px; border-radius: 7px; color: var(--cyan); background: rgba(82,232,255,0.08); border: 1px solid rgba(82,232,255,0.22); font-family: "DM Mono", monospace; font-size: 0.6rem; letter-spacing: .06em; }
.fu-card h4 { margin: 11px 0 6px; font-size: 0.98rem; letter-spacing: -0.02em; }
.fu-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.fu-card .msg { padding: 10px 12px; border-radius: 11px; font-size: 0.72rem; line-height: 1.5; color: var(--text); background: rgba(80,245,168,0.07); border: 1px solid rgba(80,245,168,0.2); }

.loop-ring { margin-top: 18px; padding: 18px; border-radius: 16px; text-align: center; background: linear-gradient(105deg, rgba(80,245,168,0.09), rgba(166,140,255,0.09)); border: 1px solid rgba(82,232,255,0.25); }
.loop-ring b { display: block; margin-bottom: 6px; color: var(--green); font-family: "DM Mono", monospace; font-size: 0.64rem; letter-spacing: .1em; }
.loop-ring p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }

/* ==============================
   CLIENT ASSISTANT
============================== */
.assist-grid { display: grid; gap: 14px; }
.assist-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.assist-card h3 { margin: 4px 0 0; font-size: 1.05rem; letter-spacing: -0.03em; }
.assist-card > p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.assist-chat { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: rgba(0,0,0,0.22); border-radius: 14px; border: 1px solid var(--line); }
.assist-chat .bubble { max-width: 94%; font-size: 0.72rem; }
.proposal { align-self: flex-start; width: 94%; padding: 11px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(82,232,255,0.3); font-size: 0.7rem; line-height: 1.5; color: var(--muted); }
.proposal b { color: var(--text); }
.proposal .acts { display: flex; gap: 7px; margin-top: 9px; }
.proposal .acts span { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-weight: 800; font-size: 0.68rem; }
.proposal .acts .ok { background: linear-gradient(105deg, var(--green), var(--cyan)); color: #021014; }
.proposal .acts .no { border: 1px solid var(--line); color: var(--muted); }
.mini-bars { display: grid; gap: 7px; margin-top: 6px; }
.mini-bars div { display: grid; grid-template-columns: 74px 1fr 34px; gap: 8px; align-items: center; font-size: 0.64rem; color: var(--muted); }
.mini-bars i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.mini-bars em { font-style: normal; color: var(--text); text-align: right; }
.assist-points { display: grid; gap: 9px; margin-top: 22px; }
.assist-points div { padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.assist-points b { color: var(--text); }

/* ==============================
   AGENTS
============================== */
.agents-grid { display: grid; gap: 14px; }
.agent { padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease; }
.agent:hover { transform: translateY(-3px); border-color: rgba(82,232,255,0.32); }
.agent .badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #021014; font-weight: 800; font-size: 0.82rem; background: linear-gradient(135deg, var(--green), var(--cyan)); }
.agent .badge.p { background: linear-gradient(135deg, var(--purple), var(--cyan)); }
.agent .badge.a { background: linear-gradient(135deg, var(--amber), var(--green)); }
.agent .badge.i { background: linear-gradient(135deg, #ff9a5c, #ff4f9a); color: #fff; }
.agent h3 { margin: 14px 0 3px; font-size: 1.05rem; letter-spacing: -0.03em; }
.agent .role { display: block; margin-bottom: 10px; color: var(--cyan); font-family: "DM Mono", monospace; font-size: 0.6rem; letter-spacing: .08em; }
.agent p { margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.agent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.agent li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.agent li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.brain-bar { margin-top: 16px; padding: 18px; border-radius: 16px; background: linear-gradient(105deg, rgba(82,232,255,0.1), rgba(166,140,255,0.09)); border: 1px solid rgba(82,232,255,0.3); }
.brain-bar b { color: var(--cyan); font-family: "DM Mono", monospace; font-size: 0.62rem; letter-spacing: .1em; }
.brain-bar p { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }

/* ==============================
   CONTROL
============================== */
.control-grid { display: grid; gap: 12px; }
.control-item { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.control-item h3 { margin: 0 0 6px; font-size: 0.98rem; letter-spacing: -0.02em; }
.control-item h3 span { color: var(--green); }
.control-item p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

/* ==============================
   FAQ + DOCS CALLOUT
============================== */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.2rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 17px; color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.faq summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 14px; }

.docs-callout { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.docs-callout h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.03em; }
.docs-callout p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }

/* ==============================
   TABLET / DESKTOP
============================== */
@media (min-width: 650px) {
  .journey-rail { margin-left: 0; margin-right: 0; border-radius: 14px; border: 1px solid var(--line); }
  .setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fu-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .assist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-callout { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; gap: 34px; }
  .flow-board { grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: stretch; }
  .flow-board .flow-arrow { align-self: center; }
}
@media (min-width: 900px) {
  .setup-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .agents-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage:nth-of-type(even) .stage-copy { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .journey-rail { transition: none; }
}
