/* Taskr Automations — home page only */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 100px; }
.hero .glow--cyan { top: 120px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); margin-bottom: 0.45em; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 0.92rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ---------- Workflow mock ---------- */
.wf {
  position: relative; border-radius: 20px; border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(23, 27, 41, 0.92), rgba(12, 14, 22, 0.94));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 92, 255, 0.08), 0 0 90px rgba(124, 92, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wf::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.7), transparent 35%, transparent 65%, rgba(34, 211, 238, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.wf-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.wf-dots { display: inline-flex; gap: 6px; }
.wf-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.wf-title { font-family: var(--mono); font-size: 0.76rem; color: var(--dim); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-body { padding: 22px 20px 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.pill--live { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.pill--live::before { animation: wf-blink 1.6s ease-in-out infinite; }
.pill--run { color: var(--accent-2); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.pill--run::before { background: none; width: 8px; height: 8px; border: 1.5px solid currentColor; border-top-color: transparent; animation: wf-spin 0.9s linear infinite; }
.pill--wait { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }

.wf-node {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.wf-ico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted);
}
.wf-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wf-text { min-width: 0; margin-right: auto; display: flex; flex-direction: column; line-height: 1.3; }
.wf-kicker { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.wf-text strong { font-size: 0.93rem; font-weight: 600; color: var(--text); }

.wf-node--agent {
  flex-wrap: wrap; border-color: transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  animation: wf-glow 3.2s ease-in-out infinite;
}
.wf-node--agent .wf-ico { background: var(--grad); border-color: transparent; color: #fff; }
.wf-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.wf-chips span { font-family: var(--mono); font-size: 0.66rem; padding: 3px 8px; border-radius: 6px; background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.28); color: #c9bdff; }

.wf-link { position: relative; width: 2px; height: 28px; margin: 0 auto; background: linear-gradient(180deg, rgba(124, 92, 255, 0.55), rgba(34, 211, 238, 0.35)); }
.wf-link::after, .wf-branch i::after {
  content: ""; position: absolute; left: -2px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.7);
  animation: wf-drop 2.4s cubic-bezier(.5, 0, .5, 1) infinite;
}
.wf-link--2::after { animation-delay: 0.8s; }

.wf-branch { position: relative; height: 32px; --col: calc((100% - 20px) / 6); }
.wf-branch::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 16px; background: rgba(34, 211, 238, 0.4); }
.wf-branch::after { content: ""; position: absolute; top: 15px; left: var(--col); right: var(--col); height: 2px; background: rgba(34, 211, 238, 0.4); border-radius: 2px; }
.wf-branch i { position: absolute; top: 15px; width: 2px; height: 17px; background: rgba(34, 211, 238, 0.4); margin-left: -1px; }
.wf-branch i:nth-child(1) { left: var(--col); }
.wf-branch i:nth-child(2) { left: 50%; }
.wf-branch i:nth-child(3) { left: calc(100% - var(--col)); }
.wf-branch i::after { --drop: 14px; animation-delay: 1.5s; }
.wf-branch i:nth-child(2)::after { animation-delay: 1.65s; }
.wf-branch i:nth-child(3)::after { animation-delay: 1.8s; }

.wf-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wf-action {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px 12px;
  border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); line-height: 1.3;
}
.wf-action .wf-ico { margin-bottom: 4px; color: #b8a6ff; background: var(--accent-soft); border-color: rgba(124, 92, 255, 0.3); }
.wf-action strong { font-size: 0.84rem; font-weight: 600; }
.wf-action span.wf-sub { font-size: 0.72rem; color: var(--muted); }
.wf-action .pill { margin-top: 6px; }

.wf-log { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); font-family: var(--mono); font-size: 0.72rem; line-height: 1.9; color: var(--dim); overflow: hidden; }
.wf-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-log b { color: var(--accent-2); font-weight: 500; margin-right: 8px; }
.wf-log em { color: var(--ok); font-style: normal; }
.wf-log .wf-cursor { display: inline-block; width: 7px; height: 12px; margin-left: 4px; vertical-align: -1px; background: var(--accent-2); animation: wf-blink 1.1s steps(2) infinite; }
.wf-caption { margin: 14px 0 0; text-align: center; font-size: 0.78rem; color: var(--dim); }

@keyframes wf-drop {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: translateY(var(--drop, 25px)); opacity: 1; }
  55%, 100% { transform: translateY(var(--drop, 25px)); opacity: 0; }
}
@keyframes wf-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0), 0 8px 30px rgba(124, 92, 255, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.12), 0 8px 40px rgba(124, 92, 255, 0.4); }
}
@keyframes wf-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes wf-spin { to { transform: rotate(360deg); } }

/* ---------- Tools strip ---------- */
.tools { padding: 44px 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.tools-label { text-align: center; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; }
.tools-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.tools-list .tag { font-size: 0.82rem; padding: 8px 16px; color: var(--text); transition: border-color .2s, background .2s; }
.tools-list .tag:hover { border-color: rgba(124, 92, 255, 0.55); background: var(--accent-soft); }
.tools-note { text-align: center; margin: 20px 0 0; font-size: 0.9rem; color: var(--dim); }

/* ---------- Shared bits ---------- */
.section-foot { margin-top: 44px; }
.section-head h2 + p { font-size: 1.1rem; }
.card .tag-row { margin-top: 18px; }

/* ---------- Why Taskr (bento) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.why-grid .card { grid-column: span 2; }
.why-grid .card--wide { grid-column: span 3; }
.approval { margin-top: 22px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0, 0, 0, 0.28); padding: 14px 16px; }
.approval-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.approval-top span:first-child { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.approval p { font-size: 0.9rem; color: var(--text); margin: 0 0 12px; }
.approval-btns { display: flex; gap: 8px; }
.approval-btns span { font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--muted); }
.approval-btns span:first-child { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); color: var(--ok); }
.own-list { margin-top: 22px; display: grid; gap: 8px; }
.own-list li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.28); }
.own-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, rgba(124, 92, 255, 0.6), rgba(34, 211, 238, 0.6)); opacity: 0.5; }
.step { position: relative; counter-increment: step; }
.step::before {
  content: "0" counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 50%; font-family: var(--mono); font-size: 0.85rem; color: var(--text);
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent;
  box-shadow: 0 0 0 6px var(--bg-2);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.97rem; margin-bottom: 14px; }

/* ---------- Use cases ---------- */
.team-card { display: flex; flex-direction: column; }
.team-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.team-head .icon { margin-bottom: 0; flex-shrink: 0; }
.team-head h3 { margin: 0; }
.team-card .check-list { margin-bottom: 4px; }
.team-card .check-list li:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band .btn-row { justify-content: center; }
.cta-mail { margin: 22px auto 0 !important; font-size: 0.95rem !important; }
.cta-mail a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-2); overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .wf { max-width: 560px; width: 100%; margin: 0 auto; }
  .why-grid .card, .why-grid .card--wide { grid-column: span 3; }
  .why-grid .card:last-child { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 22px; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 52px 0 64px; }
  .hero-copy .btn-row .btn { flex: 1 1 auto; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid .card, .why-grid .card--wide, .why-grid .card:last-child { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 30px 66px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step::after { content: ""; position: absolute; left: 23px; top: 46px; bottom: 0; width: 1px; background: var(--border-strong); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::after { display: none; }
  .section-head { margin-bottom: 40px; }
  .card { padding: 24px; }
}
@media (max-width: 420px) {
  .wf-body { padding: 18px 14px 16px; }
  .wf-node { padding: 12px 11px; gap: 10px; }
  .wf-action { padding: 12px 4px 10px; }
  .wf-action .pill { font-size: 0.6rem; padding: 3px 7px; }
  .wf-branch { --col: calc((100% - 16px) / 6); }
  .wf-actions { gap: 8px; }
  .cta-band .btn { width: 100%; }
}

/* FAQ inline link */
.faq-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
