/* =========================================================================
   Wingman Focus — Download page (builds on tokens.css + v2.css)
   ========================================================================= */

.dl-head { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.dl-head .eyebrow { margin-bottom: 16px; }
.dl-head h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.02; margin-bottom: 16px; }
.dl-head .lead { max-width: 440px; margin: 0 auto; }

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.dl-card {
  background: var(--wm-surface); border: 1px solid var(--wm-slate-100); border-radius: 28px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--wm-shadow-raised);
}
.dl-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.dl-body h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 7px; }
.dl-body .dl-desc { font-size: 15px; line-height: 1.5; color: var(--wm-fg-muted); text-wrap: pretty; }

.dl-reqs { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 22px; }
.dl-req { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--wm-fg-muted); }
.dl-req .mi { font-size: 17px; color: var(--wm-primary); flex: none; }

.dl-cta { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apl { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.btn-lg .apl { width: 18px; height: 18px; }

.dl-fine { text-align: center; margin-top: 26px; font-size: 13.5px; font-weight: 500; color: var(--wm-fg-faint); display: flex; align-items: center; justify-content: center; gap: 8px; }
.dl-fine .mi { font-size: 16px; color: var(--wm-fg-faint); }

/* ------------------------------------------------------------- visuals */
.dl-visual { position: relative; height: 320px; overflow: hidden; flex: none; background: linear-gradient(180deg, var(--wm-slate-50) 0%, #EAF1F9 100%); }
.dl-visual::before {
  content: ""; position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  width: 130%; aspect-ratio: 1.6;
  background: radial-gradient(circle, rgba(62,139,255,0.16) 0%, transparent 68%);
  pointer-events: none;
}

/* iPhone — frame bleeds off the card bottom */
.dl-visual.v-iphone .phone { position: absolute; left: 50%; transform: translateX(-50%); top: 34px; --phone-w: 258px; }

/* Mac — menu bar + Wingman popover */
.mbar {
  position: absolute; top: 18px; left: 18px; right: 18px; height: 34px;
  background: rgba(255,255,255,0.88); border: 1px solid var(--wm-slate-100); border-radius: 10px;
  box-shadow: var(--wm-shadow-card);
  display: flex; align-items: center; gap: 14px; padding: 0 13px;
  font-size: 12px; font-weight: 600; color: var(--wm-slate-700);
}
.mbar .apl { width: 14px; height: 14px; color: var(--wm-slate-800); }
.mbar .mb-app { font-weight: 700; color: var(--wm-slate-900); }
.mbar .sp { flex: 1; }
.mbar .mi { font-size: 15px; color: var(--wm-slate-500); }
.mbar .mb-w {
  height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px;
  background: var(--wm-primary); border-radius: 6px;
}
.mbar .mb-w img { width: 13px; height: 13px; object-fit: contain; filter: brightness(0) invert(1); }
.mbar .mb-w .mi { font-size: 12px; color: #fff; }
.mbar .mb-time { font-variant-numeric: tabular-nums; white-space: nowrap; }

.mpop {
  position: absolute; right: 30px; top: 62px; width: 268px;
  background: #fff; border: 1px solid var(--wm-slate-100); border-radius: 16px;
  box-shadow: var(--wm-shadow-floating);
  padding: 15px;
}
.mpop::before {
  content: ""; position: absolute; top: -6px; right: 26px; width: 11px; height: 11px;
  background: #fff; border-left: 1px solid var(--wm-slate-100); border-top: 1px solid var(--wm-slate-100);
  transform: rotate(45deg);
}
.mpop .mp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.mpop .mp-head .av {
  width: 28px; height: 28px; border-radius: 999px; flex: none;
  background: var(--wm-grad-blue); display: flex; align-items: center; justify-content: center;
}
.mpop .mp-head .av img { width: 17px; height: 17px; object-fit: contain; filter: brightness(0) invert(1); }
.mpop .mp-head .t { font-size: 13.5px; font-weight: 800; letter-spacing: -0.2px; color: var(--wm-slate-900); }
.mpop .mp-head .s { font-size: 11px; font-weight: 600; color: var(--wm-success-strong); display: flex; align-items: center; gap: 5px; }
.mpop .mp-head .s::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--wm-success); }
.mpop .mp-task { font-size: 13.5px; font-weight: 700; color: var(--wm-slate-800); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mpop .mp-task .rem { font-size: 12.5px; font-weight: 700; color: var(--wm-accent-task); font-variant-numeric: tabular-nums; }
.mpop .mp-bar { height: 5px; border-radius: 5px; background: var(--wm-slate-100); margin: 9px 0 12px; overflow: hidden; }
.mpop .mp-bar i { display: block; height: 100%; width: 68%; border-radius: 5px; background: var(--wm-accent-task); }
.mpop .mp-note { font-size: 12px; font-weight: 600; color: var(--wm-fg-muted); display: flex; align-items: center; gap: 7px; padding-top: 11px; border-top: 1px solid var(--wm-slate-100); }
.mpop .mp-note .mi { font-size: 15px; color: var(--wm-slate-400); }

/* ------------------------------------------------------------- steps */
.step-tag {
  display: flex; align-items: center; gap: 13px;
  font-size: clamp(19px, 1.9vw, 23px); font-weight: 800; letter-spacing: -0.4px; color: var(--wm-slate-900);
  margin-bottom: 18px;
}
.step-tag .n {
  width: 32px; height: 32px; flex: none; border-radius: 999px;
  background: var(--wm-primary); color: #fff;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--wm-shadow-cta);
}
.step-tag + .dl-grid { margin-top: 0; }
.dl-card.step1 { flex-direction: row; align-items: stretch; margin-bottom: clamp(44px, 6vw, 72px); }
.dl-card.step1 .dl-body { flex: 1; justify-content: center; }
.dl-card.step1 h3 { margin-top: 0; }
.s1-visual {
  flex: none; width: 44%; max-width: 470px;
  background: linear-gradient(180deg, var(--wm-slate-50) 0%, #EAF1F9 100%);
  border-left: 1px solid var(--wm-slate-100);
  display: flex; align-items: center; padding: clamp(20px, 2.6vw, 34px);
}
.s1-visual .thread { width: 100%; gap: 8px; }
.s1-visual .bubble { font-size: 14px; box-shadow: 0 2px 8px rgba(15,23,42,0.06); }

@media (max-width: 860px) {
  .dl-card.step1 { flex-direction: column; }
  .s1-visual { width: 100%; max-width: none; border-left: none; border-top: 1px solid var(--wm-slate-100); }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-visual { height: 290px; }
  .mpop { right: 18px; }
}
