/* ==========================================================================
   BuildSignal — Brand & conversion upgrade (October 2026)
   Loaded after styles.css and updates.css. Uses the existing design tokens.
   Styles only the new homepage sections; remove this file to revert them.
   ========================================================================== */

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border-strong);
  padding: 10px 16px; border-radius: 10px; font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible { outline: none; }

/* ---------- Hero ---------- */
.hero-title { max-width: 620px; }
.hero-actions { margin-bottom: 16px; }
.hero-trial-link { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-trial-link a { color: var(--cyan); font-weight: 500; }
.hero-trial-link a:hover { text-decoration: underline; }
.lead-journey .lj-connector:nth-child(8) .lj-connector-fill { animation-delay: 3.6s; }
@media (max-width: 640px) {
  .hero-trial-link { margin-bottom: 28px; }
}

/* ---------- Brand strip ---------- */
.brand-strip .proof-inner p {
  font-family: var(--font-head); font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
}
.brand-strip .proof-inner p span:nth-child(2) { color: var(--cyan); }
.brand-strip .proof-inner p span:nth-child(3) { color: var(--text-muted); }

/* ---------- Connected workflow (5 stages) ---------- */
.journey {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}
/* connecting track: shows in the gaps between stage cards */
.journey::before, .journey::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 45px; height: 2px; z-index: 0;
}
.journey::before { background: var(--border-strong); }
.journey::after {
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  background-size: 30% 100%; background-repeat: no-repeat;
  animation: journey-travel 5s linear infinite;
}
@keyframes journey-travel {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}
.journey-stage {
  position: relative; z-index: 1;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 20px 24px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.journey-stage:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.35); }
/* arrow between stages */
.journey-stage:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 40px; right: -15px;
  width: 9px; height: 9px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan);
  transform: rotate(45deg); opacity: 0.85;
}
.js-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.js-node {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--cyan);
  animation: node-pulse 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.45s);
}
.js-index {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
}
.journey-stage h3 { font-size: 1.08rem; margin-bottom: 12px; }
.journey-stage ul { display: flex; flex-direction: column; gap: 8px; }
.journey-stage li {
  position: relative; padding-left: 16px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5;
}
.journey-stage li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}

.journey-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 28px; padding: 16px 20px; max-width: 900px;
  border: 1px solid var(--border); border-left: 2px solid rgba(34,211,238,0.5);
  border-radius: var(--radius-sm); background: var(--bg-soft);
  color: var(--text-muted); font-size: 0.88rem;
}
.journey-note svg { flex-shrink: 0; color: var(--cyan); margin-top: 2px; }

/* Tablet & mobile: vertical timeline */
@media (max-width: 1080px) {
  .journey { grid-template-columns: 1fr; gap: 16px; max-width: 720px; }
  .journey::before, .journey::after { left: 44px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .journey::after {
    background: linear-gradient(180deg, transparent, var(--cyan), var(--violet), transparent);
    background-size: 100% 30%; animation-name: journey-travel-y;
  }
  .journey-stage {
    display: grid; grid-template-columns: 48px 1fr; column-gap: 18px;
    padding: 20px;
  }
  .journey-stage:hover { transform: none; }
  .js-head { display: contents; }
  .js-node { grid-column: 1; grid-row: 1 / span 3; }
  .js-index { grid-column: 2; grid-row: 1; margin-bottom: 4px; }
  .journey-stage h3 { grid-column: 2; grid-row: 2; }
  .journey-stage ul { grid-column: 2; grid-row: 3; }
  .journey-stage:not(:last-child)::after {
    top: auto; bottom: -13px; right: auto; left: 40px; transform: rotate(135deg);
  }
}
@keyframes journey-travel-y {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}
@media (max-width: 480px) {
  .journey-stage { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px 16px; }
  .js-node { width: 40px; height: 40px; }
  .js-node svg { width: 19px; height: 19px; }
  .journey::before, .journey::after { left: 36px; }
  .journey-stage:not(:last-child)::after { left: 32px; }
}

/* ---------- Project opportunities ---------- */
.opportunities { background: linear-gradient(180deg, var(--bg), var(--bg-soft) 50%, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.opp-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; margin-bottom: 44px; }
.opp-layout > * { min-width: 0; }
.opp-head { margin-bottom: 0; max-width: 640px; }
.opp-head .eyebrow { flex-wrap: wrap; }
.opp-head .eyebrow .status { margin-left: 4px; }
.opp-fineprint { display: flex; flex-direction: column; gap: 8px; margin: 22px 0 26px; }
.opp-fineprint li {
  position: relative; padding-left: 22px; font-size: 0.86rem; color: var(--text-faint); line-height: 1.5;
}
.opp-fineprint li::before { content: "i"; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 0.6rem; line-height: 13px; text-align: center; color: var(--text-muted); }

.opp-alert {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-glow);
}
.oa-title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.oa-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; }
.oa-meta b { color: var(--cyan); font-weight: 600; }
.oa-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.oa-tags span {
  font-size: 0.74rem; padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted);
}
.oa-actions { display: flex; gap: 10px; }
.oa-btn {
  flex: 1; text-align: center; padding: 9px 12px; border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--text-muted);
}
.oa-btn-primary { background: var(--grad); color: #08090c; border-color: transparent; }

.opp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.opp-step {
  position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 20px;
}
.opp-step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; right: -15px; width: 9px; height: 9px;
  border-top: 2px solid var(--violet); border-right: 2px solid var(--violet); transform: rotate(45deg);
}
.opp-icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(110,86,248,0.14); color: #a998ff; margin-bottom: 14px;
}
.opp-num { position: absolute; top: 22px; right: 20px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); }
.opp-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.opp-step p { font-size: 0.86rem; color: var(--text-muted); }

@media (max-width: 960px) {
  .opp-layout { grid-template-columns: 1fr; gap: 32px; }
  .opp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp-step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .opp-steps { grid-template-columns: 1fr; gap: 14px; }
  .opp-step:not(:last-child)::after, .opp-step:nth-child(2)::after {
    display: block; top: auto; right: auto; bottom: -12px; left: 40px; transform: rotate(135deg);
  }
  .opp-head .btn { width: 100%; }
}

/* ---------- Packages ---------- */
.pkg-level {
  display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}
.price-card.featured .price-tag { left: auto; right: 24px; }
.price-desc { min-height: 0; margin-bottom: 14px; }
.pkg-focus {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.5;
  padding: 10px 12px; margin-bottom: 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.pkg-focus b { color: var(--text); font-weight: 600; }
.pkg-help {
  margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  text-align: center; color: var(--text-muted); font-size: 0.95rem;
}
.pkg-help b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .pkg-help { flex-direction: column; }
  .pkg-help .btn { width: 100%; }
}

/* ---------- Packages: two-card centered layout ---------- */
#pricing .section-head { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }
#pricing .trial-banner,
#pricing .pricing-grid-2 { max-width: 920px; margin-left: auto; margin-right: auto; }
#pricing .pricing-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
#pricing .pricing-grid-2 .price-card { padding: 36px 32px 32px; }
#pricing .pricing-grid-2 .price-card.featured { order: 0; border-color: rgba(34,211,238,0.45); }
#pricing .pricing-grid-2 .price-card.featured .price-tag { right: 28px; }
#pricing .price-footnote { max-width: 920px; }
@media (max-width: 900px) {
  #pricing .pricing-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  #pricing .pricing-grid-2 .price-card { padding: 30px 22px 24px; }
}
@media (max-width: 720px) {
  #pricing .pricing-grid-2 { grid-template-columns: 1fr; max-width: 520px; gap: 26px; }
}

/* ---------- How we work ---------- */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.process-step {
  position: relative; padding: 26px 22px 24px;
  border-top: 2px solid var(--border-strong);
}
.process-step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--grad);
}
.ps-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
  background: var(--grad); color: #08090c; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 520px) { .process-steps { grid-template-columns: 1fr; } .process-step { padding: 20px 4px; } }

/* ---------- Bring us your problem ---------- */
.challenge-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 48px;
}
.challenge-panel::before {
  content: ""; position: absolute; bottom: -160px; left: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.14), transparent 70%); pointer-events: none;
}
.challenge-panel > * { position: relative; z-index: 1; min-width: 0; }
.challenge-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 16px; }
.challenge-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.challenge-points li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.challenge-points b { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--text); }
.challenge-points span { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }
.challenge-promise {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; color: var(--text);
  padding-left: 14px; border-left: 2px solid var(--violet);
}
.challenge-form textarea { min-height: 110px; }
.challenge-form textarea[name="budget_notes"] { min-height: 64px; }
.challenge-form .form-row > label { min-width: 0; }
.challenge-form .form-row input, .challenge-form .form-row select, .challenge-form .form-row textarea { width: 100%; min-width: 0; }
.challenge-form .form-note { font-family: var(--font-body); font-size: 0.86rem; color: var(--text-muted); }
.form-row input:user-invalid, .form-row textarea:user-invalid, .form-row select:user-invalid { border-color: rgba(255,107,74,0.7); }
@media (max-width: 960px) {
  .challenge-panel { grid-template-columns: 1fr; padding: 32px 22px; gap: 30px; }
}
@media (max-width: 520px) {
  .challenge-points { grid-template-columns: 1fr; }
}

/* ---------- Sticky mobile CTA: also stay out of the way of the challenge form ---------- */
.mobile-cta.suppress { transform: translateY(110%) !important; }

/* ---------- Footer ---------- */
.footer-brand p { max-width: 340px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .journey::after, .js-node { animation: none !important; }
  .journey::after { display: none; }
  .journey-stage, .journey-stage:hover { transition: none; transform: none; }
}
